/* ベーススタイル */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* ヒーローセクション */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(120deg, #ffffff, #f0f0f0);
}

.hero-inner {
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.scroll-down {
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: default;
}

/* アニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.delay-1 {
  animation-delay: 0.5s;
}

.delay-2 {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.about {
  padding: 8rem 2rem;
  background-color: #fff;
  text-align: center;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1.2rem;
  line-height: 2;
  color: #444;
}

.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.skills {
  padding: 8rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.skills-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.skills h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.skill-card p {
  font-size: 1rem;
  color: #555;
}

/* ホバーアニメーション */
.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.research {
  padding: 8rem 2rem;
  background-color: #fff;
  text-align: center;
}

.research-inner {
  max-width: 900px;
  margin: 0 auto;
}

.research h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.research-item {
  background-color: #f3f6fa;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

.research-item:hover {
  transform: translateY(-5px);
}

.research-item h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.research-item h3 a {
  color: #1e90ff;
  text-decoration: none;
}

.research-item h3 a:hover {
  text-decoration: underline;
}

.research-item p {
  font-size: 1rem;
  color: #555;
}
.projects {
  padding: 8rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.projects-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.project-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #555;
}

.project-card a {
  color: #1e90ff;
  font-weight: bold;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}
.contact {
  padding: 6rem 2rem;
  background-color: #fff;
  text-align: center;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.contact .email {
  font-weight: bold;
  font-size: 1.2rem;
  color: #1e90ff;
  word-break: break-all;
}
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffffee;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e90ff;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: #1e90ff;
}

body {
  scroll-behavior: smooth;
  padding-top: 70px; /* 固定ヘッダー対策 */
}
.site-footer {
  background-color: #f0f0f0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

.site-footer a {
  color: #1e90ff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
/* モーダルの背景 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* モーダル本体 */
.modal-content {
  background: #fff;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  border-radius: 12px;
  position: relative;
  animation: fadeInModal 0.3s ease;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: #999;
}

/* 表示アニメーション */
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
