/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヒーローセクション */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  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,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,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;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  position: relative;
}

.scroll-indicator span::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

/* セクションタイトル */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dark);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

/* 自己紹介セクション */
.about {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.about-content {
  display: flex;
  justify-content: center;
}

.about-card {
  max-width: 700px;
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.about-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* スキルセクション */
.skills {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.skill-card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.skill-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

/* 開発 - 青 */
.skill-card-blue .skill-icon {
  color: #3b82f6;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(37, 99, 235, 0.15)
  );
}

.skill-card-blue:hover .skill-icon {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(37, 99, 235, 0.25)
  );
  transform: scale(1.1);
}

/* SEO - 緑 */
.skill-card-green .skill-icon {
  color: #10b981;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(5, 150, 105, 0.15)
  );
}

.skill-card-green:hover .skill-icon {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2),
    rgba(5, 150, 105, 0.25)
  );
  transform: scale(1.1);
}

/* 分析 - オレンジ */
.skill-card-orange .skill-icon {
  color: #f59e0b;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(217, 119, 6, 0.15)
  );
}

.skill-card-orange:hover .skill-icon {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.2),
    rgba(217, 119, 6, 0.25)
  );
  transform: scale(1.1);
}

/* Webアクセシビリティ - 紫 */
.skill-card-purple .skill-icon {
  color: #8b5cf6;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(124, 58, 237, 0.15)
  );
}

.skill-card-purple:hover .skill-icon {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2),
    rgba(124, 58, 237, 0.25)
  );
  transform: scale(1.1);
}

/* 生成AI - ピンク */
.skill-card-pink .skill-icon {
  color: #ec4899;
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.1),
    rgba(219, 39, 119, 0.15)
  );
}

.skill-card-pink:hover .skill-icon {
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.2),
    rgba(219, 39, 119, 0.25)
  );
  transform: scale(1.1);
}

.skill-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 600;
}

.skill-description {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
  text-align: left;
}

/* 保有資格セクション */
.certifications {
  padding: 4rem 0;
  background-color: var(--bg-white);
}

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

.certification-card {
  background: var(--bg-white);
  padding: 1rem 0.75rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  border: 1px solid var(--bg-light);
}

.certification-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.certification-icon {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.certification-card h3 {
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

/* お問い合わせセクション */
.contact {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.coming-soon-badge {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-white);
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
}

.coming-soon-badge i {
  font-size: 4rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.coming-soon-badge h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.coming-soon-badge p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* フッター */
.footer {
  background-color: var(--text-dark);
  color: var(--bg-white);
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 0;
  }
}

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

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

  .hero-description {
    font-size: 1rem;
  }

  .about-card {
    padding: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .about-card {
    padding: 1.5rem;
  }

  .about-card h3 {
    font-size: 1.5rem;
  }

  .about-card p {
    font-size: 1rem;
  }
}
