body {
  margin: 0;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Meiryo', 'Helvetica Neue', sans-serif;
  background-color: #f8f8f8;
  color: #111;
  padding-top: 90px;
}

/* パララックス効果共通 */
section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === HERO SECTION with Catchphrase === */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 60px;
  padding: 0;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* キャッチコピーオーバーレイ */
.hero-overlay {
  position: absolute;
  top: 40%;
  left: 80px;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 800px;
}

.hero-catchphrase {
  font-size: 3.5rem;  /* 3.5rem → 4.5rem に拡大 */
  font-weight: 300;
  color: white;  /* すでに白 */
  margin: 0;
  line-height: 1.4;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
  text-align: left;
}


.hero-subtitle {
  font-size: 1.3rem;  /* 1.2rem → 1.3rem に拡大 */
  color: white;  /* すでに白 */
  margin-top: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  text-align: left;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-catchphrase {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    min-height: 350px;
  }
  
  .hero-catchphrase {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
}
/* === RESEARCH SECTION === */
.research {
  padding: 80px 20px;
  background: white;
  text-align: center;
}

.research h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1e3c72;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.pillar {
  text-align: left;
  position: relative;
  padding: 30px 0;
  border-bottom: 2px solid #e0e0e0;
  transition: border-color 0.3s ease;
}

.pillar:hover {
  border-color: #1e3c72;
}

.pillar .number {
  font-size: 5rem;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1;
  margin-bottom: 10px;
}

.pillar h3 {
  font-size: 1.5rem;
  color: #1e3c72;
  margin-bottom: 1rem;
  font-weight: 600;
  margin-top: -50px;
  position: relative;
  z-index: 1;
}

.pillar p {
  color: #555;
  line-height: 1.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
  }
  
  .pillar .number {
    font-size: 3.5rem;
  }
  
  .pillar h3 {
    margin-top: -40px;
  }
}

/* === NEWS SECTION === */
.news {
  background: url('images/news/news.jpg') center/cover no-repeat, #f4f4f4;
  position: relative;
  text-align: center;
  padding: 80px 20px;
}

.news::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

.news h2,
.news-list {
  position: relative;
  z-index: 2;
}

.news h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #1e3c72;
}

.news-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.news-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1em;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.news-list li:hover {
  background-color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.news-list .date {
  min-width: 100px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
}

.news-content {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.news-title {
  flex-grow: 1;
}

/* ニュースリスト用のリンクボタン */
.news-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
  transition: all 0.2s ease;
  flex-shrink: 0;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.news-quick-link:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.news-quick-link-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* リンクタイプ別の色 */
.news-quick-link.paper {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border-color: rgba(40, 167, 69, 0.2);
}

.news-quick-link.paper:hover {
  background: rgba(40, 167, 69, 0.2);
}

.news-quick-link.video {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.2);
}

.news-quick-link.video:hover {
  background: rgba(220, 53, 69, 0.2);
}

.news-quick-link.github {
  background: rgba(51, 51, 51, 0.1);
  color: #333;
  border-color: rgba(51, 51, 51, 0.2);
}

.news-quick-link.github:hover {
  background: rgba(51, 51, 51, 0.2);
}

/* === CONTACT SECTION === */
.contact {
  background: #1e3c72;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.contact h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.contact p {
  margin-bottom: 20px;
}

.contact a {
  color: #a8c8ff;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* コピーライト表記 */
.copyright {
  margin-top: 40px !important;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85em;
  opacity: 0.8;
  line-height: 1.6;
}

/* === マーモセット関連 === */
.floating-marmoset {
  position: fixed;
  width: 60px;
  height: 60px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1000;
  transition: all 0.1s ease;
}

.floating-marmoset.following {
  background: url('images/common/m_4.png') center/contain no-repeat;
}

.floating-marmoset.bounce {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0% { transform: scale(1) translateY(0); }
  30% { transform: scale(1.2) translateY(-20px); }
  50% { transform: scale(1.1) translateY(-10px); }
  70% { transform: scale(1.15) translateY(-15px); }
  100% { transform: scale(1) translateY(0); }
}

/* === その他のユーティリティ === */
.loading {
  opacity: 0.6;
  font-style: italic;
}

.auto-update-badge {
  position: fixed;
  top: 100px;
  right: 20px;
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 1001;
  display: none;
}

/* === レスポンシブ対応 === */
@media screen and (max-width: 768px) {
  .news-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-content {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-quick-link {
    align-self: flex-end;
  }
}
/* 固定CTAボタン */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.circle-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 4px solid white;
}

.circle-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.7);
}

.circle-button .emoji {
  font-size: 2rem;
  margin-bottom: 5px;
}

.circle-button .text {
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 20px;
    right: 20px;
  }
  
  .circle-button {
    width: 90px;
    height: 90px;
  }
  
  .circle-button .emoji {
    font-size: 1.5rem;
  }
  
  .circle-button .text {
    font-size: 0.75rem;
  }
}

/* Seminars Section */
.seminars {
  background: white;
  padding: 80px 20px;
}

.seminars h2 {
  font-size: 2.5em;
  margin-top: 60px;
  margin-bottom: 40px;
  color: #1e3c72;
  text-align: center;
}

.seminar-list {
  max-width: 900px;
  margin: 0 auto;
}

.seminar-item {
  background: #f8f9fa;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seminar-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.seminar-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.seminar-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.seminar-link {
  display: inline-block;
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.seminar-link:hover {
  color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
  .seminar-item {
    padding: 20px;
  }
  
  .seminar-title {
    font-size: 1.3rem;
  }
  
  .seminar-description {
    font-size: 0.95rem;
  }
}