@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Roboto:wght@700&display=swap');

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #fafafa;
  color: #333;
}
/* ===== Dark Cool Welcome Animation with Radial Background ===== */
#welcome-screen {
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  /* 🌑 中央が少し明るい「黒い丸」グラデーション背景 */
  background: radial-gradient(circle at center, #1a1a1a 0%, #000 75%);
  overflow: hidden;
  z-index: 9999;
  color: #e0e0e0;
  font-family: "Roboto", sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  animation: fadeOut 1.6s ease 2.1s forwards;
  perspective: 1000px;
  opacity: 0;
  display: none;
}

/* 文字の登場アニメーション */
#welcome-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(90deg);
  animation: rollInDark 0.8s forwards cubic-bezier(0.55, 0.1, 0.25, 1);
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
}

/* 偶数・奇数で色変化 */
#welcome-text span:nth-child(odd) {
  color: #02ccba; /* ミントシアン */
}
#welcome-text span:nth-child(even) {
  color: #ff4081; /* ネオンピンク */
}

/* 1文字ずつ転がるようなアニメーション */
@keyframes rollInDark {
  0% {
    opacity: 0;
    transform: translateY(60px) rotateX(90deg) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(0) rotateX(-15deg) scale(1.05);
    filter: drop-shadow(0 0 15px rgba(2, 204, 186, 0.7));
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) scale(1);
    filter: drop-shadow(0 0 25px rgba(255, 64, 129, 0.5));
  }
}

/* 文字全体が波打つように光るアニメーション */
@keyframes neonPulse {
  0%, 100% {
    text-shadow:
      0 0 5px #02ccba,
      0 0 15px #02ccba,
      0 0 25px #ff4081,
      0 0 40px #ff4081;
  }
  50% {
    text-shadow:
      0 0 10px #ff4081,
      0 0 25px #02ccba,
      0 0 45px #02ccba,
      0 0 70px #ff4081;
  }
}

/* フェードアウト */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
/* Header */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: rgba(19,45,50,0.9);
  color: white;
  height: 65px;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-left {
  margin-right: auto;
  color: #02ccba;
  font-weight: bold;
  font-size: 20px;
}
.header-link {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  position: relative;
}
.header-link::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%; height: 2px;
  background: #02ccba;
  transition: width 0.3s;
}
.header-link:hover::after { width: 100%; }
.header-link:hover { color: #02ccba; }

/* Home */
.hometitle {
  min-height: 100vh; /* ← height ではなく min-height */
  background: url(/imgfile/kiyoneko.jpeg) center center / cover no-repeat fixed; /* ← 背景固定＋拡大調整 */
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}
.hometitle h1 { font-size: 60px; }
.rotating-text { font-size: 22px; color: #02ccba; }

/* --- Profile section on home --- */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: white;
  padding-top: 150px;
}

.profile-photo {
  width: 400px;              /* 横幅を広げる */
  height: 220px;             /* 縦幅を控えめに */
  border-radius: 20px;       /* 角を少し丸く */
  object-fit: cover;         /* はみ出し部分を自動トリミング */
  border: 4px solid transparent;
  background: linear-gradient(135deg, #02ccba, #ff4081) padding-box,
              linear-gradient(135deg, #02ccba, #ff4081) border-box;
  box-shadow: 0 0 40px rgba(2, 204, 186, 0.6);
  margin-bottom: 30px;
  animation: fadeIn 2s ease;
}

.profile-text {
  font-size: 18px;
  line-height: 1.6;
  color: #eaeaea;
  margin-top: 10px;
  max-width: 500px;
  animation: fadeInUp 2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

/* --- SNSリンク群（.comments） --- */
.comments {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 30px;
  font-size: 20px;
}

.comments a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comments a:hover {
  color: #02ccba;
  transform: translateY(-2px);
}

/* --- 各SNSアイコンの背景色を軽く整える --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.btn.X { background: #000; }
.btn.instagram { background: linear-gradient(45deg, #feda75, #d62976, #962fbf); }
.btn.github { background: #24292f; }

.btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* --- KAJILAB セクション --- */
.kajilab {
  background: transparent;
  text-align: center;
  padding: 40px 0;
  background-color: #f9f9f9;
  font-size: 20px;
  color: #333;
  font-weight: 500;
}

.kajilab a {
  color: #02ccba;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.kajilab a:hover {
  border-bottom: 2px solid #02ccba;
}

/* Skills */
.skilltext {
  padding-top: 120px;
  text-align: center;
  font-size: 32px;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
  object-fit: scale-down;
}
.skills-icon {
  text-align: center;
  transition: transform 0.3s;
  object-fit: scale-down;
}
.skills-icon:hover { transform: scale(1.05); }
.image-size {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  /* box-shadow: 0 3px 10px rgba(0,0,0,0.1); */
}

/* Education */
.education {
  background: white;
  text-align: center;
  padding: 80px 20px;
}
.education-title {
  font-size: 2em;
  margin-bottom: 40px;
}
.education-icon {
  margin: 15px auto;
  padding: 15px;
  width: 70%;
  border-left: 5px solid #02ccba;
  background: #fdfdfd;
  text-align: left;
  transition: 0.3s;
}
.education-icon:hover {
  background: #eafaf8;
  transform: translateY(-5px);
}

/* ===== Presentations Section ===== */
.presentation {
  margin-top: 100px;
  padding: 50px 20px;
  background: #f8fbfc;
  border-top: 2px solid #02ccba;
}

.presentation-title {
  text-align: center;
  font-size: 1.8em;
  color: #02ccba;
  margin-bottom: 40px;
}

.presentation-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.presentation-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 25px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presentation-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.presentation-item h2 {
  font-size: 1.3em;
  color: #333;
  margin-bottom: 10px;
}

.presentation-item i {
  color: #02ccba;
  margin-right: 10px;
}

.presentation-detail {
  color: #555;
  line-height: 1.7;
  margin-bottom: 8px;
}

.presentation-date {
  color: #777;
  font-size: 0.9em;
  text-align: right;
  font-style: italic;
}

/* Projects */
.project-title {
  font-size: 2em;
  text-align: center;
  padding-top: 80px;
}
.filter-buttons {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.filter-btn {
  background-color: #132d32;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.3s;
}
.filter-btn:hover { background: #02ccba; }

.projects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 100px;
}
.card {
  background: white;
  border-radius: 10px;
  width: 280px;
  text-align: left;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon {
  width: 25px;
  height: 25px;
}
.tag {
  display: inline-block;
  padding: 5px 10px;
  background: #132d32;
  color: white;
  border-radius: 5px;
  font-size: 0.8em;
}

/* --- Awards Section --- */
.award {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.award-title {
  font-size: 2em;
  margin-bottom: 50px;
  color: #333;
  position: relative;
}

.award-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #02ccba, #ff4081);
  margin: 10px auto 0;
  border-radius: 2px;
}

.award-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.award-item {
  width: 80%;
  max-width: 650px;
  background: #fdfdfd;
  border-left: 5px solid #02ccba;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
  transition: all 0.3s ease;
}

.award-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.award-item h2 {
  font-size: 1.3em;
  color: #02ccba;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.award-item i {
  color: #ff4081;
}

.award-detail {
  color: #333;
  line-height: 1.6;
  font-size: 0.95em;
}

.award-date {
  margin-top: 8px;
  font-size: 0.9em;
  color: #666;
  text-align: right;
  font-style: italic;
}

/* --- Private Section --- */
.private {
  background: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.private-title {
  font-size: 2em;
  margin-bottom: 40px;
  color: #333;
}

.private-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.private-item {
  background: white;
  width: 80%;
  max-width: 600px;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.private-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.private-item h2 a {
  color: #02ccba;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
}

.private-item h2 a:hover {
  color: #ff4081;
}

.private-date {
  display: inline-block;
  background: #02ccba;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  margin-top: 8px;
  box-shadow: 0 3px 6px rgba(2, 204, 186, 0.2);
}

/* Footer */
.footer {
  background: #132d32;
  color: white;
  text-align: center;
  padding: 20px 0;
}
.footer-access {
  margin: 0 10px;
  color: white;
  font-size: 20px;
}
.footer-access:hover { color: #02ccba; }

footer {
  text-align: center;
  padding: 10px;
  color: #666;
  background: #f1f1f1;
  font-size: 14px;
}