:root {
  /* AWS カラーパレット (既存維持) */
  --aws-orange: #FF9900;
  --aws-smile-orange: #FF6C37;
  --aws-squid-ink: #232F3E;
  --aws-anchor: #0073BB;
  --aws-anchor-hover: #005B8C;
  --aws-light-blue: #1F74B7;
  --aws-deep-blue: #12283A;
  --aws-charcoal: #484848;
  --aws-concrete: #F2F3F3;
  --aws-squid-ink-light: #31465F;
  
  /* モダンデザイン用変数 */
  --bg-color: #ffffff;
  --surface-color: #f8f9fa;
  --text-primary: var(--aws-deep-blue);
  --text-secondary: var(--aws-squid-ink-light);
  --text-light: #ffffff;
  --accent-gradient: linear-gradient(135deg, var(--aws-orange), var(--aws-smile-orange));
  --hero-gradient: linear-gradient(135deg, var(--aws-deep-blue) 0%, var(--aws-squid-ink) 100%);
  
  /* レイアウト・スペース */
  --container-width: 1024px;
  --header-height: 70px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  
  /* アニメーション */
  --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* コンテナ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ヘッダー (固定ナビゲーション) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--aws-deep-blue);
}

.logo span {
  color: var(--aws-orange);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-base);
}

.nav-links a:hover {
  color: var(--aws-deep-blue);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ヒーローセクション */
.hero {
  min-height: 100vh;
  background: var(--hero-gradient);
  color: var(--text-light);
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255,153,0,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-text .role {
  font-size: 1.2rem;
  color: var(--aws-orange);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  letter-spacing: 0.05em;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  border: 6px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: morph 8s ease-in-out infinite;
  z-index: 2;
}

@keyframes morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* バッジ (Hero内) */
.hero-badges {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 3;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.hero-badge:last-child { margin-bottom: 0; }
.hero-badge i { color: var(--aws-orange); font-size: 1.2rem; }

/* セクション共通 */
section {
  padding: 6rem 0;
}

.section-bg {
  background-color: var(--surface-color);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title span {
  color: var(--aws-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--aws-deep-blue);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* About セクション */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 2rem;
  color: var(--aws-orange);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--aws-deep-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Journey (タイムライン) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #e0e0e0;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 3rem;
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 3rem;
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 0;
  right: -8px;
  width: 16px;
  height: 16px;
  background: var(--aws-orange);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--aws-orange);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -8px;
}

.timeline-date {
  position: absolute;
  top: -5px;
  right: -120px;
  font-weight: 600;
  color: var(--aws-orange);
  width: 100px;
}

.timeline-item:nth-child(even) .timeline-date {
  right: auto;
  left: -120px;
  text-align: right;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  width: 100%;
  transition: var(--transition-base);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.timeline-content h3 {
  font-size: 1.25rem;
  color: var(--aws-deep-blue);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition: var(--transition-base);
}

.skill-card:hover {
  border-top-color: var(--aws-orange);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-header i {
  font-size: 1.5rem;
  color: var(--aws-anchor);
}

.skill-header h3 {
  font-size: 1.2rem;
  color: var(--aws-deep-blue);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--surface-color);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--aws-squid-ink);
  font-weight: 500;
}

/* Certifications (List) */
.certifications-content {
  max-width: 800px;
  margin: 0 auto;
}

.certifications-content > p {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

.certifications-list {
  display: grid;
  gap: 1rem;
}

.certification-item {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: var(--transition-base);
  border-left: 4px solid var(--aws-light-blue);
}

.certification-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--aws-orange);
}

.cert-date {
  font-weight: 600;
  color: var(--aws-orange);
  min-width: 120px;
  font-size: 0.95rem;
}

.cert-name {
  font-weight: 600;
  color: var(--aws-deep-blue);
  font-size: 1.05rem;
}

.credly-link {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.95rem;
}

.credly-link a {
  color: var(--aws-anchor);
  text-decoration: underline;
  font-weight: 600;
}

.credly-link a:hover {
  color: var(--aws-orange);
}

/* Activities */
.activities-content {
  max-width: 800px;
  margin: 0 auto;
}

.activity-category {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.activity-category:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.activity-title {
  font-size: 1.25rem;
  color: var(--aws-deep-blue);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--aws-orange);
  display: inline-block;
}

.activity-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-primary);
}

.activity-list li {
  margin-bottom: 0.8rem;
}

.activity-list ul {
  list-style: circle;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.activity-list a {
  color: var(--aws-anchor);
  text-decoration: underline;
}

.activity-list a:hover {
  color: var(--aws-orange);
}

/* Works / Apps */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center; /* 少ない要素を中央寄せ */
}

.work-card {
  background: white;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  display: flex; /* group -> display: flex に修正 */
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.work-icon {
  height: 160px;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--aws-light-blue);
  transition: var(--transition-base);
}

.work-card:hover .work-icon {
  background: var(--aws-light-blue);
  color: white;
}

.work-content {
  padding: 1.5rem;
}

.work-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--aws-deep-blue);
}

.work-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--aws-anchor);
  font-weight: 600;
  font-size: 0.9rem;
}

.work-link:hover {
  color: var(--aws-orange);
}

/* SNS Links */
.sns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.sns-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  text-align: center;
  gap: 1rem;
}

.sns-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  color: var(--aws-anchor);
}

.sns-item i {
  font-size: 2rem;
  color: var(--aws-squid-ink);
  transition: var(--transition-base);
}

.sns-item:hover i {
  color: var(--aws-orange);
}

.sns-name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--aws-deep-blue);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--aws-orange);
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* スクロールアニメーション用クラス */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-image img {
    width: 280px;
    height: 280px;
  }

  .hero-badges {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 2rem;
    display: inline-block;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 0;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 2rem;
    padding-right: 0;
    margin-left: 0;
    justify-content: flex-start;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 0;
  }
  
  .timeline-dot {
    left: -9px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
  }
  
  .timeline-date {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    left: auto;
  }
  
  /* 保有資格セクション修正 */
  .certification-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1.2rem;
  }

  .cert-date {
    font-size: 0.85rem;
    min-width: auto;
    margin-bottom: 0.25rem;
    color: var(--aws-orange);
  }

  .cert-name {
    font-size: 1rem;
    line-height: 1.4;
  }

  /* 活動セクション修正 */
  .activity-category {
    padding: 1.5rem;
  }

  .activity-list {
    padding-left: 1.5rem;
    margin-top: 1rem;
  }

  .activity-list li {
    list-style-type: disc;
    list-style-position: outside;
    margin-bottom: 1rem;
    padding-left: 0.25rem;
  }

  .nav-links {
    display: none; /* モバイルメニューは今回省略またはシンプル化 */
  }
}
