/* ベース設定 */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

/* ネオン背景 */
.neon-widget {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 255, 0.15), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(255, 0, 255, 0.15), transparent 60%);
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% {
    filter: blur(20px);
  }
  100% {
    filter: blur(40px);
  }
}

/* ナビゲーションバー */
.navbar {
  background: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 255, 255, 0.1);
}

/* ロゴ */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0a0a0a;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.nav-links a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 255, 255, 0.3);
}

.nav-links a:active {
  transform: translateY(0px) scale(0.95);
  box-shadow: 0 4px 8px rgba(0, 255, 255, 0.2);
}

/* 波紋エフェクト */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 300%;
  height: 300%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  transition: transform 0.5s ease;
  z-index: -1;
}

.nav-links a:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* 言語切り替えボタン（共通） */
.language-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.language-switch button {
  padding: 5px 10px;
  background: #e0f7f7;
  border: 1px solid #00cccc;
  border-radius: 4px;
  color: #006666;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.language-switch button:hover {
  background: #ccf0f0;
}

/* ハンバーガー */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

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

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

/* カード */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
  flex: 1 1 250px;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.3);
}

.card h2 {
  color: #00cccc;
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* ボタン */
.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #00cccc;
  color: #fff;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.button:hover {
  background-color: #0099aa;
  transform: scale(1.05);
}

/* プロフィール */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

.profile-text {
  text-align: center;
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.card ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.card ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* レスポンシブ対応 */
/* ハンバーガーとナビ表示切替 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    right: 2rem;
    top: 60px;
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .language-switch {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .language-switch button {
    padding: 5px 10px;
    background: #00cccc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .language-switch button:hover {
    background: #0099aa;
  }
}
