/* アカデミック・モダンデザインテーマ */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&family=JetBrains+Mono:wght@200;300;400&display=swap');

:root {
  /* カラーパレット - アカデミックアースカラー */
  --primary-green: #6B8E5C;
  --primary-terra: #C8956B;
  --accent-sage: #9CAF88;
  --accent-sand: #E5D4B8;
  --dark-forest: #2C4A3D;
  --light-cream: #FBF8F3;
  --pure-white: #FFFFFF;
  --text-primary: #2C3E50;
  --text-secondary: #5A6C7D;
  --text-light: #8B9AAB;
  
  /* グラデーション */
  --gradient-hero: linear-gradient(135deg, rgba(107,142,92,0.95) 0%, rgba(156,175,136,0.95) 100%);
  --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #F8F9FA 100%);
  --gradient-accent: linear-gradient(120deg, #C8956B 0%, #E5D4B8 100%);
  --gradient-forest: linear-gradient(135deg, #6B8E5C 0%, #9CAF88 100%);
  
  /* シャドウ */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px rgba(0,0,0,0.12);
  
  /* タイポグラフィ */
  --font-serif: 'Crimson Text', 'Noto Serif JP', serif;
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ベーススタイル */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--light-cream);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* タイポグラフィ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-forest);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* ヘッダー - 洗練されたデザイン */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem; /* ロゴとタイトルの間隔を適切に */
}

.site-logo {
  width: 45px;
  height: 45px;
  background: transparent; /* 背景を透明に */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  color: white;
  font-size: 1.25rem;
  overflow: hidden;
  flex-shrink: 0; /* ロゴのサイズを固定 */
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* アスペクト比を保持 */
  border-radius: 0; /* 円形にしない */
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.2rem; /* 1.1remから1.2remに少し大きく調整 */
  font-weight: 600;
  color: var(--dark-forest);
  text-decoration: none;
  letter-spacing: -0.02em; /* 文字間を詰めて省スペースに */
  white-space: nowrap; /* 改行を防ぐ */
  overflow: hidden; /* はみ出しを隠す */
  text-overflow: ellipsis; /* 長すぎる場合は省略記号を表示 */
}

/* ナビゲーション - デザインリッチスタイル */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.3rem;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 0.8rem 1rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  overflow: hidden;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* ナビゲーションアイコン - 常に表示 */
.main-nav a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
  opacity: 0.7;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: -0.25rem;
}

.main-nav a[href*="home"]::before,
.main-nav a[href="/"]::before { content: "\f015"; }
.main-nav a[href*="profile"]::before { content: "\f2c0"; }
.main-nav a[href*="research"]::before { content: "\f0c3"; }
.main-nav a[href*="publications"]::before { content: "\f02d"; }
.main-nav a[href*="presentations"]::before { content: "\f080"; }
.main-nav a[href*="teaching"]::before { content: "\f19d"; }
.main-nav a[href*="media"]::before { content: "\f1ea"; }
.main-nav a[href*="links"]::before { content: "\f0c1"; }

/* ホバー時のエフェクト */
.main-nav a:hover {
  color: var(--primary-green);
  background: rgba(107, 142, 92, 0.08);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(107, 142, 92, 0.15);
  border-color: rgba(107, 142, 92, 0.2);
}

.main-nav a:hover::before {
  opacity: 1;
  transform: rotate(360deg);
  color: var(--primary-terra);
}

/* アクティブ状態 */
.main-nav a.active {
  color: white;
  background: var(--gradient-accent);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(200, 149, 107, 0.3);
  border-color: transparent;
}

.main-nav a.active::before {
  opacity: 1;
  color: white;
}

/* グロー効果 */
.main-nav a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(107, 142, 92, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease;
  z-index: -1;
}

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

/* パルスアニメーション（アクティブ時） */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(200, 149, 107, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(200, 149, 107, 0.5);
  }
  100% {
    box-shadow: 0 4px 15px rgba(200, 149, 107, 0.3);
  }
}

.main-nav a.active {
  animation: pulse 2s ease-in-out infinite;
}

/* 背景パターン効果（オプション） */
.main-nav {
  position: relative;
}

.main-nav::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  right: -10%;
  bottom: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(156, 175, 136, 0.03) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.main-nav:hover::before {
  opacity: 1;
}

/* モバイル用ハンバーガーメニュー */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  color: var(--primary-green);
  /* transform: rotate(90deg); 削除 - モバイルで問題を起こすため */
}

/* ヒーローセクション - インパクトのあるデザイン */
.hero-section {
  margin-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* フォールバック用の背景 */
  background: #2C4A3D;
}

/* 背景動画のスタイル */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* 動画上のグラデーションオーバーレイ */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(44,74,61,0.4) 0%,
    rgba(44,74,61,0.1) 40%,
    rgba(44,74,61,0.1) 60%,
    rgba(44,74,61,0.4) 100%
  );
  z-index: 2;
}

/* パターンオーバーレイ（削除） */
.hero-section::before {
  display: none;
}

/* 動画右端の研究リンク */
.video-research-link {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(44, 74, 61, 0.75); /* 半透明の深緑色背景 */
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 4;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 180px;
}

/* 訪問済みリンクも同じスタイルを維持 */
.video-research-link:visited {
  background: rgba(44, 74, 61, 0.75);
  color: inherit;
}

.video-research-link:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: rgba(44, 74, 61, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

.video-research-link .link-icon {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
}

.video-research-link .link-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 訪問済みリンクでも白色を維持 */
.video-research-link:visited .link-text {
  color: #ffffff;
}

.video-research-link .link-arrow {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.8;
  transition: all 0.3s ease;
  font-weight: 700;
}

/* 訪問済みリンクでも矢印の色を維持 */
.video-research-link:visited .link-arrow {
  color: rgba(255, 255, 255, 0.9);
}

.video-research-link:hover .link-arrow {
  opacity: 1;
  transform: translateX(4px);
  color: #ffffff;
}

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

.video-research-link {
  animation: floatIn 0.8s ease-out 1s backwards;
}

/* パルスエフェクト */
@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }
}

.video-research-link {
  animation: floatIn 0.8s ease-out 1s backwards, subtlePulse 3s ease-in-out 2s infinite;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: -80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 3;
}

.hero-top {
  padding: 6rem 2rem 0;
  text-align: center;
  animation: fadeInDown 1s ease-out;
}

.hero-bottom {
  padding: 0 2rem 4rem;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 新しいタイトルスタイル */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero-title-main {
  display: block;
  font-size: 0.8em;
  font-weight: 400;
  margin-bottom: 0.2rem;
  opacity: 0.9;
}

.hero-title-accent {
  display: block;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #FFFFFF 0%, #E5D4B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* キーワードセクション */
.hero-keywords {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.keyword-item {
  background: rgba(107,142,92,0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.keyword-item:hover {
  background: rgba(107,142,92,1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.5);
}

.keyword-item i {
  font-size: 1.25rem;
  color: #ffffff;
}

.keyword-item span {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.keyword-divider {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.8;
  color: rgba(255,255,255,0.8);
}

/* タグライン */
.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  opacity: 1;
  margin-bottom: 0;
  line-height: 1.6;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 研究室情報 */
.hero-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-item i {
  font-size: 0.9rem;
  color: var(--accent-sand);
}

.info-divider {
  opacity: 0.4;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
}

/* ボタン - モダンスタイル */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: white;
  color: var(--primary-green);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* 研究室情報セクション */
.lab-info-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.lab-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--primary-green);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin: 0;
  position: relative;
  display: inline-block;
}

.lab-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-sage), transparent);
  opacity: 0.6;
}

/* コンテンツセクション */
.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
  margin-top: 80px; /* ヘッダーの高さ分のマージンを追加 */
}
.btn-secondary {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

/* カード - 洗練されたデザイン */
.card {
  background: var(--pure-white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover::before {
  opacity: 1;
}

.card-title {
  font-family: var(--font-serif);
  color: var(--dark-forest);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* 研究トピックグリッド */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.25rem;
  margin: 3rem 0;
}

.topic-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.topic-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--gradient-accent);
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(30px, -30px);
  transition: all 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.topic-card:hover::after {
  transform: translate(20px, -20px) scale(1.2);
}

.topic-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

/* 統計セクション */
.stats-section {
  background: var(--gradient-hero);
  padding: 4rem 2rem;
  margin: 4rem 0;
  border-radius: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* 論文リスト - エレガントでモダンなデザイン */
.publication-item {
  background: linear-gradient(to right, #ffffff 0%, #faf8f5 100%);
  border-radius: 0;
  padding: 1.5rem 4rem 1.5rem 1.75rem; /* 右側のパディングを増やして番号用のスペースを確保 */
  margin-bottom: 1.25rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5d4b8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: visible; /* overflowをvisibleに変更して線が切れないようにする */
  min-height: 5.5rem; /* 最小高さを設定して番号が収まるようにする */
}

/* 年ごとのセクション */
.publication-year-section {
  margin-bottom: 2.5rem;
  position: relative;
}

.publication-year-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.publication-year-label {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-terra);
  background: var(--light-cream);
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.publication-year-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-sand) 10%, var(--accent-sand) 90%, transparent);
  z-index: 1;
}

/* 年ごとのセクションの境界線 */
.publication-year-section:not(:last-child) {
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(229, 212, 184, 0.3);
}

/* 左側のアクセントライン - 両端を直角にする（丸くしない） */
.publication-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-terra);
  opacity: 0.8;
  transition: width 0.3s ease, opacity 0.3s ease;
  /* 重要：border-radiusを一切適用しない */
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  /* 完全に直角にするための追加設定 */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: none !important;
  /* 線を確実に表示させるため */
  transform: translateX(0);
  will-change: width, opacity;
  /* JavaScriptによるスタイル変更を防ぐ */
  pointer-events: none !important;
}

.publication-item:hover {
  background: white;
  box-shadow: 0 4px 20px rgba(107,142,92,0.08);
  transform: translateX(6px);
  border-color: rgba(107,142,92,0.2);
}

.publication-item:hover::before {
  width: 4px;
  opacity: 1;
}

/* 番号付けのスタイル - 強化版 */
.publication-item {
  counter-increment: publication;
}

/* 論文番号のスタイルを完全に保護 */
.publication-item::after {
  content: counter(publication, decimal-leading-zero) !important;
  position: absolute !important;
  right: 1.5rem !important;
  top: 50% !important; /* 垂直中央に配置 */
  transform: translateY(-50%) !important; /* 垂直中央揃え */
  font-family: var(--font-mono) !important;
  font-size: 2.8rem !important; /* 大きく表示 */
  color: rgba(200, 149, 107, 0.12) !important; /* 非常に薄い色 */
  font-weight: 200 !important; /* 非常に細く */
  opacity: 1 !important;
  transition: color 0.3s ease !important; /* colorのみトランジション */
  display: block !important;
  visibility: visible !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  line-height: 1 !important;
  /* 番号が論文の内容に干渉しないようにする */
  pointer-events: none !important;
  user-select: none !important;
  z-index: 1 !important;
  /* フォントを確実にロード */
  font-feature-settings: "tnum" 1; /* 数字を等幅に */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* JavaScriptによる変更を防ぐ */
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  -webkit-text-fill-color: rgba(200, 149, 107, 0.12) !important;
  -webkit-text-stroke: none !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  white-space: nowrap !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
  resize: none !important;
  min-width: auto !important;
  max-width: none !important;
  min-height: auto !important;
  max-height: none !important;
  /* すべてのプロパティを固定 */
  all: initial !important;
  content: counter(publication, decimal-leading-zero) !important;
  position: absolute !important;
  right: 1.5rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-family: var(--font-mono) !important;
  font-size: 2.8rem !important;
  color: rgba(200, 149, 107, 0.12) !important;
  font-weight: 200 !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 1 !important;
  font-feature-settings: "tnum" 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.publication-item:hover::after {
  color: rgba(200, 149, 107, 0.2) !important; /* ホバー時は少し濃く */
  transform: translateY(-50%) !important; /* 位置を維持 */
  /* その他のプロパティは変更しない */
  content: counter(publication, decimal-leading-zero) !important;
  position: absolute !important;
  right: 1.5rem !important;
  top: 50% !important;
  font-family: var(--font-mono) !important;
  font-size: 2.8rem !important;
  font-weight: 200 !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 1 !important;
}

/* リセット */
.content-section {
  counter-reset: publication;
}

/* 査読付き論文セクションの年ヘッダー */
.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-terra);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(229, 212, 184, 0.5);
  position: relative;
}

/* h3の下部デコレーションラインを削除（年ヘッダー用） */
.content-section h3::after {
  display: none;
}

/* 最初の年ヘッダーは上マージンを少なく */
.content-section h2 + h3 {
  margin-top: 1.5rem;
}

.publication-title {
  font-weight: 500;
  color: var(--dark-forest);
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
  line-height: 1.45;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  padding-right: 2rem; /* 番号と重ならないようにする */
}

.publication-authors {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.publication-authors strong {
  color: var(--primary-green);
  font-weight: 600;
  /* 緑のハイライトを削除 */
  padding: 0 2px;
}

.publication-authors strong u {
  text-decoration: none;
  border-bottom: 2px solid var(--primary-terra);
  padding-bottom: 1px;
  /* 牧口祐也のみに緑のハイライト */
  background: linear-gradient(to bottom, transparent 60%, rgba(107,142,92,0.15) 60%);
}

.publication-journal {
  font-style: normal;
  color: var(--text-primary);
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
  opacity: 0.9;
}

.publication-meta {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(229,212,184,0.2);
}

.publication-year {
  display: none; /* 年情報は論文情報に含まれているため非表示 */
}

.publication-doi {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.2rem 0.6rem;
  background: rgba(156,175,136,0.1);
  border-radius: 15px;
}

.publication-doi i {
  font-size: 0.75rem;
}

.publication-doi:hover {
  color: var(--primary-green);
  background: rgba(156,175,136,0.2);
  transform: translateY(-1px);
}

/* DOIがない場合のメタ情報を非表示 */
.publication-meta:empty {
  display: none;
  border-top: none;
}

/* タグシステム */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: var(--accent-sand);
  color: var(--dark-forest);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tag:hover {
  background: var(--primary-terra);
  color: white;
  transform: translateY(-2px);
}

/* ニュースグリッド - サムネイル付き */
.news-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

/* お知らせ一覧のサムネイル付きアイテム */
.news-item-with-thumbnail {
  display: grid;
  grid-template-columns: 576px 1fr;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--light-cream);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible; /* overflowをvisibleに変更 */
  margin-bottom: 1.5rem;
}

.news-item-with-thumbnail:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.news-item-with-thumbnail::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-item-with-thumbnail:hover::before {
  opacity: 1;
}

.news-item-with-thumbnail img.news-thumbnail {
  display: block;
  width: 576px;
  height: 384px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--accent-sand);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item-with-thumbnail:hover img.news-thumbnail {
  transform: scale(1.05);
}

.news-item-with-thumbnail .news-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}

.news-item-with-thumbnail .news-content h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  line-height: 1.4;
}

.news-item-with-thumbnail .news-content h2::after {
  display: none;
}

.news-item-with-thumbnail .news-content h2 a {
  color: var(--dark-forest);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item-with-thumbnail .news-content h2 a:hover {
  color: var(--primary-green);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.news-meta time {
  font-weight: 500;
  color: var(--primary-terra);
}

.news-meta .categories {
  display: flex;
  gap: 0.5rem;
}

.news-meta .category {
  background: var(--accent-sage);
  color: var(--dark-forest);
  padding: 0.2rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 一覧ページの基本アイテム */
.list-item {
  margin-bottom: 2rem;
}

.list-item h2 {
  margin-bottom: 0.5rem;
}

.list-item h2 a {
  color: var(--dark-forest);
  text-decoration: none;
  transition: color 0.3s ease;
}

.list-item h2 a:hover {
  color: var(--primary-green);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .news-item-with-thumbnail {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .news-item-with-thumbnail img.news-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 256px;
  }
  
  .news-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ニュースアイテム（旧スタイル互換用） */
.news-item {
  display: grid;
  grid-template-columns: 576px 1fr;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--light-cream);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.news-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-item:hover::before {
  opacity: 1;
}

.news-thumbnail {
  position: relative;
  width: 384px;
  height: 256px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--accent-sand);
}

.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail img {
  transform: scale(1.05);
}

/* ニュースの日付 */
.news-date {
  display: inline-block;
  background: var(--accent-sage);
  color: var(--dark-forest);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.news-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-content h3 {
  color: var(--dark-forest);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.news-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.news-link:hover {
  color: var(--primary-terra);
  gap: 0.75rem;
}

.news-link i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.news-link:hover i {
  transform: translateX(3px);
}

/* タイムライン（他のページ用に残す） */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-sand);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: var(--primary-terra);
  border-radius: 50%;
  border: 4px solid var(--light-cream);
  z-index: 1;
}

.timeline-date {
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* フッター - モダンデザイン */
.site-footer {
  background: var(--dark-forest);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%232C4A3D' fill-opacity='1' d='M0,30 C120,50 240,50 360,30 C480,10 600,10 720,30 C840,50 960,50 1080,30 C1200,10 1320,10 1440,30 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: var(--accent-sand);
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-sand);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* レスポンシブデザイン */
/* 中間サイズのビューポート用 */
@media (max-width: 1200px) {
  .site-title {
    font-size: 1.2rem; /* 中間サイズでも少し小さく */
  }
  
  .main-nav a {
    font-size: 0.85rem; /* ナビゲーションも少し小さく */
    padding: 0.7rem 0.9rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }
  
  /* モバイルメニュートグル表示 */
  .mobile-menu-toggle {
    display: block;
  }
  
  /* ナビゲーションのモバイル対応 */
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 2rem 0;
  }
  
  .main-nav.active {
    transform: translateY(0);
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1.5rem;
  }
  
  .main-nav a {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
  }
  
  .main-nav a::before {
    opacity: 1;
  }
  
  /* ツールチップを無効化 */
  .main-nav li::after,
  .main-nav li::before {
    display: none;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-content {
    margin-top: 0;
    height: 80vh;
  }
  
  .hero-top {
    padding: 5rem 1.5rem 0;  /* 上部パディングを増やして見切れを防ぐ */
  }
  
  .hero-bottom {
    padding: 0 1.5rem 2.5rem;  /* 下部パディングを調整 */
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-title-main {
    font-size: 0.9em;
  }
  
  /* キーワードをコンパクトに */
  .hero-keywords {
    gap: 0.75rem;
    margin-bottom: 1.5rem;  /* モバイルではマージンを減らす */
  }
  
  .keyword-item {
    padding: 0.5rem 1rem;
  }
  
  .keyword-item i {
    font-size: 1rem;
  }
  
  .keyword-item span {
    font-size: 1.1rem;
  }
  
  .keyword-divider {
    font-size: 1rem;
    display: none; /* モバイルでは区切り記号を非表示 */
  }
  
  .hero-tagline {
    font-size: 1rem;
    margin-bottom: 1rem;  /* 2remから1remに変更 */
    line-height: 1.5;  /* 行間を調整 */
  }
  
  .hero-info {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  
  .info-divider {
    display: none;
  }
  
  .topic-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* ニュースグリッドのレスポンシブ対応 */
  .news-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .news-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 256px;
  }
  
  /* モバイルでのヒーロービデオ調整 */
  .hero-video {
    object-fit: contain;  /* 動画全体が表示されるように変更 */
    object-position: center;
  }
  
  /* 動画の研究リンクをモバイルで調整 */
  .video-research-link {
    position: fixed;  /* absoluteからfixedに変更 */
    bottom: 2rem;  /* 下部に配置 */
    right: 1rem;
    top: auto;
    transform: none;
    font-size: 0.8rem;
    padding: 0.8rem 1rem;
    max-width: 150px;
  }
  
  .video-research-link .link-text {
    font-size: 0.75rem;
  }
  
  .video-research-link .link-arrow {
    font-size: 0.9rem;
  }
  
  .news-date {
    font-size: 0.8rem;
    padding: 0.25rem 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .news-content h3 {
    font-size: 1.1rem;
  }
  
  .news-content p {
    font-size: 0.9rem;
  }
  
  /* 動画右端のリンクをモバイルで調整 */
  .video-research-link {
    position: fixed;  /* absoluteからfixedに変更 */
    bottom: 2rem;  /* 下部に配置 */
    right: 1rem;
    top: auto;
    transform: none;
    font-size: 0.8rem;
    padding: 0.8rem 1rem;
    max-width: 150px;
  }
  
  .video-research-link .link-text {
    font-size: 0.75rem;
  }
  
  .video-research-link .link-arrow {
    font-size: 0.9rem;
  }
  
  /* 論文リストのモバイル対応 */
  .publication-item {
    padding: 1.25rem 3.5rem 1.25rem 1rem; /* 右側のパディングを増やして番号用スペース確保 */
    margin-bottom: 1rem;
  }
  
  .publication-item::after {
    font-size: 2rem !important; /* モバイルでも番号を表示 */
    right: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* その他のプロパティは継承 */
  }
  
  .publication-title {
    font-size: 1rem;
    margin-right: 2rem; /* 番号との重なりを防ぐ */
  }
  
  .publication-authors {
    font-size: 0.8rem;
  }
  
  .publication-journal {
    font-size: 0.83rem;
  }
  
  .publication-doi {
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
  }
  
  .publication-meta {
    padding-top: 0.5rem;
    margin-top: 0.6rem;
  }
}

/* アクセシビリティ */
:focus {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* シンプルなプロフィールページスタイル */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem; /* 上部に余白を追加 */
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--accent-sand);
}

/* プロフィール写真 */
.profile-photo-wrapper {
  flex-shrink: 0;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-sand);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-info {
  flex: 1;
}

.profile-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--dark-forest);
  margin-bottom: 0.5rem;
}

.profile-title::after {
  display: none;
}

.name-en {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  display: inline-block;
  margin-left: 1rem;
}

.profile-subtitle {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.profile-email a {
  color: var(--primary-terra);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.profile-email a:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

/* メールアドレス保護のスタイル */
#email-link {
  cursor: pointer;
  position: relative;
}

#email-link[href="#"] {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

#email-link[href="#"]:hover {
  text-decoration-style: solid;
}

#email-display {
  transition: all 0.3s ease;
}

/* プロフィール本文セクション */
.profile-content-simple {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.profile-section-simple {
  margin-bottom: 3rem;
}

.profile-section-simple:last-child {
  margin-bottom: 0;
}

.profile-section-simple h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--dark-forest);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-sand);
}

.profile-section-simple h2::after {
  display: none;
}

/* シンプルなリスト */
.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simple-list li {
  padding: 0.5rem 0;
  color: var(--text-primary);
  line-height: 1.8;
  position: relative;
  padding-left: 1.5rem;
}

.simple-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-terra);
  font-weight: 600;
}

/* キーワード */
.keywords-simple {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
  }
  
  .profile-photo {
    width: 150px;
    height: 150px;
  }
  
  .profile-title {
    font-size: 2rem;
  }
  
  .name-en {
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .profile-subtitle {
    font-size: 1.1rem;
  }
  
  .profile-content-simple {
    padding: 2rem 1.5rem;
  }
  
  .profile-section-simple h2 {
    font-size: 1.3rem;
  }
  
  .simple-list li {
    font-size: 0.95rem;
  }
}

/* メディア掲載記事PDF用の視認性強化スタイル */

/* PDFアイテムのベーススタイル */
.media-pdf-item {
  background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(200, 149, 107, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: visible;
}

/* ホバー効果 */
.media-pdf-item:hover {
  transform: translateY(-4px) translateX(8px);
  box-shadow: 0 6px 16px rgba(107,142,92,0.15);
  border-color: rgba(107,142,92,0.3);
}

/* 左側のアクセントライン */
.media-pdf-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(135deg, #C8956B 0%, #E5D4B8 100%);
  border-radius: 0;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.media-pdf-item:hover::before {
  width: 6px;
  opacity: 1;
  box-shadow: 0 0 10px rgba(200, 149, 107, 0.5);
}

/* PDFアイコン付きヘッダー */
.media-pdf-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.media-pdf-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #C8956B 0%, #E5D4B8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(200, 149, 107, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.media-pdf-icon::before {
  content: '\f1c1'; /* PDF icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.media-pdf-item:hover .media-pdf-icon {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 6px 20px rgba(200, 149, 107, 0.4);
}

/* タイトルとメタ情報 */
.media-pdf-content {
  flex: 1;
}

.media-pdf-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-forest);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.media-pdf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.media-pdf-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(107,142,92,0.1);
  color: var(--primary-green);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.media-pdf-date::before {
  content: '\f073'; /* calendar icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
}

.media-pdf-outlet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,149,107,0.1);
  color: var(--primary-terra);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.media-pdf-outlet::before {
  content: '\f1ea'; /* newspaper icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
}

/* PDF記事の説明文 */
.media-pdf-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* アクションボタンエリア */
.media-pdf-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* プライマリPDFダウンロードボタン */
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #6B8E5C 0%, #9CAF88 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(107,142,92,0.3);
  position: relative;
  overflow: hidden;
}

.pdf-download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.pdf-download-btn:hover::before {
  left: 100%;
}

.pdf-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107,142,92,0.4);
}

.pdf-download-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.pdf-download-btn:hover i {
  transform: scale(1.1);
}

/* セカンダリボタン（外部リンク等） */
.pdf-external-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary-terra);
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--primary-terra);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.pdf-external-btn:hover {
  background: var(--primary-terra);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,149,107,0.3);
}

.pdf-external-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.pdf-external-btn:hover i {
  transform: translateX(2px);
}

/* ファイルサイズ表示 */
.pdf-file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.pdf-file-info::before {
  content: '\f0c5'; /* file icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  opacity: 0.7;
}

/* カテゴリー別セクション */
.media-category-section {
  margin-bottom: 3rem;
}

.media-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(107,142,92,0.2);
}

.media-category-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6B8E5C 0%, #9CAF88 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}

.media-category-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark-forest);
  margin: 0;
}

.media-category-title::after {
  display: none;
}

.media-category-count {
  background: rgba(107,142,92,0.1);
  color: var(--primary-green);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: auto;
}

/* 年代別グループ化 */
.media-year-group {
  margin-bottom: 2.5rem;
}

.media-year-header {
  position: relative;
  margin-bottom: 1.5rem;
  text-align: center;
}

.media-year-badge {
  display: inline-block;
  background: linear-gradient(135deg, #C8956B 0%, #E5D4B8 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(200,149,107,0.3);
  position: relative;
  z-index: 2;
}

.media-year-header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-sand) 20%, var(--accent-sand) 80%, transparent);
  z-index: 1;
}

/* 状態インジケーター */
.pdf-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pdf-status.available {
  background: rgba(107,142,92,0.1);
  color: var(--primary-green);
}

.pdf-status.available::before {
  content: '\f00c'; /* check icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.pdf-status.pending {
  background: rgba(255,193,7,0.1);
  color: #d4a017;
}

.pdf-status.pending::before {
  content: '\f017'; /* clock icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.pdf-status.restricted {
  background: rgba(220,53,69,0.1);
  color: #c5314f;
}

.pdf-status.restricted::before {
  content: '\f023'; /* lock icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .media-pdf-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .media-pdf-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .media-pdf-icon {
    align-self: center;
  }
  
  .media-pdf-title {
    font-size: 1.1rem;
  }
  
  .media-pdf-meta {
    justify-content: center;
    gap: 0.8rem;
  }
  
  .media-pdf-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .pdf-download-btn,
  .pdf-external-btn {
    justify-content: center;
    width: 100%;
  }
  
  .media-category-header {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .media-category-count {
    margin-left: 0;
  }
  
  .media-category-title {
    font-size: 1.5rem;
  }
}

/* アニメーション */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.media-pdf-item {
  animation: fadeInScale 0.4s ease-out;
}

/* ページロード時のスタガードアニメーション */
.media-pdf-item:nth-child(1) { animation-delay: 0.1s; }
.media-pdf-item:nth-child(2) { animation-delay: 0.2s; }
.media-pdf-item:nth-child(3) { animation-delay: 0.3s; }
.media-pdf-item:nth-child(4) { animation-delay: 0.4s; }
.media-pdf-item:nth-child(5) { animation-delay: 0.5s; }

/* 学会発表ページのスタイル */
.presentation-item {
  background: linear-gradient(to right, #ffffff 0%, #faf8f5 100%);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5d4b8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: visible;
}

.presentation-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-terra);
  opacity: 0.8;
  transition: all 0.3s ease;
  border-radius: 0;
}

.presentation-item:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(107,142,92,0.12);
  border-color: rgba(107,142,92,0.3);
}

.presentation-item:hover::before {
  width: 5px;
  opacity: 1;
  background: var(--primary-green);
}

/* 発表タイトル */
.presentation-title {
  font-weight: 600;
  color: var(--dark-forest);
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  line-height: 1.5;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

/* 発表者 */
.presentation-authors {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* 牧口祐也のハイライト */
.presentation-authors strong {
  color: var(--primary-green);
  font-weight: 600;
  background: linear-gradient(to bottom, transparent 60%, rgba(107,142,92,0.15) 60%);
  padding: 0 2px;
}

.presentation-authors strong u {
  text-decoration: none;
  border-bottom: 2px solid var(--primary-terra);
  padding-bottom: 1px;
}

/* 学会情報 */
.presentation-conference {
  font-style: normal;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.5;
}

/* 発表タイプ */
.presentation-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(156,175,136,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-top: 0.5rem;
}

.presentation-type::before {
  content: '\f1c4'; /* presentation icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--primary-green);
}

/* ポスター発表の場合 */
.presentation-type:contains("ポスター")::before {
  content: '\f249'; /* sticky note icon */
}

/* 招待講演の場合 */
.presentation-type:contains("招待講演") {
  background: rgba(200,149,107,0.15);
  color: var(--primary-terra);
}

.presentation-type:contains("招待講演")::before {
  content: '\f4ad'; /* award icon */
  color: var(--primary-terra);
}

/* 年度ヘッダー */
.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-terra);
  margin-top: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(229, 212, 184, 0.5);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* 年度ヘッダーのアイコン */
.content-section h3::before {
  content: '\f073'; /* calendar icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--accent-sage);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .presentation-item {
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
  }
  
  .presentation-title {
    font-size: 1.05rem;
  }
  
  .presentation-authors {
    font-size: 0.9rem;
  }
  
  .presentation-conference {
    font-size: 0.85rem;
  }
  
  .presentation-type {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
  }
}

/* フォーカス状態のアクセシビリティ */
.pdf-download-btn:focus,
.pdf-external-btn:focus {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
}

/* 印刷用スタイル */
@media print {
  .site-header,
  .site-footer,
  .hero-section {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .media-pdf-actions,
  .pdf-download-btn,
  .pdf-external-btn {
    display: none;
  }
  
  .media-pdf-item {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  .media-pdf-item::before {
    display: none;
  }
}

/* 研究者リンクボタンのスタイル */
.researcher-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.researcher-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--accent-sand);
  border-radius: 25px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xs);
}

.researcher-link:hover {
  background: var(--gradient-accent);
  border-color: var(--primary-terra);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.researcher-link i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.researcher-link.researchmap {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.researcher-link.researchmap:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

.researcher-link.personal {
  border-color: var(--primary-terra);
  color: var(--primary-terra);
}

.researcher-link.personal:hover {
  background: var(--primary-terra);
  border-color: var(--primary-terra);
  color: white;
}

/* Font Awesome アイコンの読み込み（もし未読み込みの場合） */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* 追加：視認性向上のためのモバイル対応 */
@media (max-width: 768px) {
  .link-category:first-child .link-item:nth-child(2) {
    margin-left: 2rem;
  }
  
  .link-category:first-child .link-item:nth-child(3) {
    margin-left: 4rem;
  }
  
  .link-category:first-child .link-item::before {
    font-size: 1.4rem;
    left: 1rem;
  }
  
  .link-category:first-child .link-text {
    font-size: 1rem;
    padding-left: 3rem;
  }
  
  .link-category:first-child .link-description {
    padding-left: 3rem;
    font-size: 0.8rem;
  }
  
  .link-category:first-child .link-item {
    padding: 1.25rem 1.5rem;
  }
  
  .link-category:first-child .link-arrow {
    right: 1rem;
  }
}

/* リンクページのスタイル */
.links-page {
  background: var(--light-cream);
  min-height: 100vh;
}

/* リンクヒーローセクション */
.links-hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-sage) 100%);
  padding: 4rem 2rem;
  text-align: center;
  margin: -2.5rem -2.5rem 3rem;
  border-radius: 0 0 50px 50px;
  position: relative;
  overflow: hidden;
}

.links-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: floatGradient 20s ease-in-out infinite;
}

@keyframes floatGradient {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -30px) rotate(180deg); }
}

.links-hero-content {
  position: relative;
  z-index: 1;
}

.links-hero h1 {
  color: white;
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.links-hero h1::after {
  display: none;
}

.links-hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* リンクカテゴリーカード */
.links-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.link-category {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 30px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.link-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.link-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.link-category:hover::before {
  transform: scaleX(1);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category-icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--gradient-accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(200,149,107,0.3);
  position: relative;
  overflow: hidden;
}

.category-icon-wrapper::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: shimmerIcon 3s ease-in-out infinite;
}

@keyframes shimmerIcon {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.category-icon {
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 1;
}

.category-title {
  flex: 1;
}

.category-title h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--dark-forest);
  margin-bottom: 0.3rem;
}

.category-title h2::after {
  display: none;
}

.category-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* リンクグリッド */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* リンクアイコンのスタイルを追加 */
.link-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(107,142,92,0.1) 0%, rgba(156,175,136,0.1) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.link-icon i {
  font-size: 1.5rem;
  color: var(--primary-green);
  transition: all 0.3s ease;
}

.link-item:hover .link-icon {
  background: var(--primary-green);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(107,142,92,0.3);
}

.link-item:hover .link-icon i {
  color: white;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  background: white;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(107,142,92,0.15);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* リンクアイコン - 各リンクに固有のアイコンを追加 */
.link-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(107,142,92,0.1) 0%, rgba(156,175,136,0.1) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.link-icon i {
  font-size: 1.4rem;
  color: var(--primary-green);
  transition: all 0.3s ease;
}

.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(107,142,92,0.05), transparent);
  transition: left 0.6s ease;
}

.link-item:hover::before {
  left: 100%;
}

.link-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(107,142,92,0.15);
  border-color: var(--primary-green);
}

.link-item:hover .link-icon {
  background: var(--primary-green);
  transform: scale(1.1);
}

.link-item:hover .link-icon i {
  color: white;
}

.link-content {
  flex: 1;
  min-width: 0;
}

.link-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-forest);
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.9;
  line-height: 1.4;
  margin-top: 0.25rem;
  display: block;
}

.link-item:hover .link-text {
  color: var(--primary-green);
}

.link-arrow {
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

.link-item:hover .link-arrow {
  transform: translateX(5px);
  color: var(--primary-green);
  opacity: 1;
}

/* SNSリンクの特別スタイル */
.sns-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.75rem;
  background: white;
  border: 2px solid var(--accent-sand);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sns-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary-green);
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.sns-link:hover::before {
  width: 300%;
  height: 300%;
}

.sns-link i {
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.sns-link span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.sns-link:hover {
  border-color: var(--primary-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(107,142,92,0.2);
}

.sns-link:hover i,
.sns-link:hover span {
  color: white;
}

/* TwitterリンクのカスタムカラーTwitterリンクのカスタムカラー */
.sns-link.twitter {
  border-color: #1DA1F2;
}

.sns-link.twitter i {
  color: #1DA1F2;
}

.sns-link.twitter::before {
  background: #1DA1F2;
}

/* YouTubeリンクのカスタムカラー */
.sns-link.youtube {
  border-color: #FF0000;
}

.sns-link.youtube i {
  color: #FF0000;
}

.sns-link.youtube::before {
  background: #FF0000;
}

/* 浮遊するデコレーション要素 */
.links-decoration {
  position: fixed;
  pointer-events: none;
  opacity: 0.05;
  z-index: 0;
}

.decoration-1 {
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.decoration-2 {
  bottom: 10%;
  left: 5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--primary-terra) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* クイックアクセスバー */
.quick-access-bar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  border-radius: 50px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex;
  gap: 1rem;
  z-index: 100;
  transition: all 0.3s ease;
}

.quick-access-bar:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.quick-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quick-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.quick-link:hover::before {
  width: 100%;
  height: 100%;
}

.quick-link:hover {
  transform: scale(1.15);
}

.quick-link i {
  color: white;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

/* ツールチップ */
.quick-link[data-tooltip] {
  position: relative;
}

.quick-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-forest);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.quick-link[data-tooltip]:hover::after {
  opacity: 1;
  bottom: 130%;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .links-hero {
    padding: 3rem 1.5rem;
    margin: -2.5rem -1.5rem 2rem;
  }
  
  .links-hero h1 {
    font-size: 2rem;
  }
  
  .links-hero-subtitle {
    font-size: 1rem;
  }
  
  .link-category {
    padding: 1.5rem;
  }
  
  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .category-icon-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .category-icon {
    font-size: 1.5rem;
  }
  
  .category-title h2 {
    font-size: 1.5rem;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .link-item {
    padding: 1rem;
  }
  
  .sns-links {
    justify-content: center;
  }
  
  .quick-access-bar {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .quick-link {
    width: 40px;
    height: 40px;
  }
  
  .quick-link i {
    font-size: 1rem;
  }
  
  .decoration-1,
  .decoration-2 {
    display: none;
  }
}

/* リンクページのスタイル改善 */
.links-page {
  min-height: 100vh;
  position: relative;
}

/* リンクグリッドの改善 */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* リンクアイテムの改善 */
.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: white;
  border: 2px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.link-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-forest);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.link-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-green);
  box-shadow: 0 8px 20px rgba(107,142,92,0.15);
}

.link-item:hover::before {
  transform: scaleY(1);
}

/* リンクコンテンツの構造化 */
.link-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.link-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-forest);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.link-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.link-item:hover .link-description {
  opacity: 1;
  transform: translateY(0);
}

.link-item:hover .link-text {
  color: var(--primary-green);
}

/* リンクアローの改善 */
.link-arrow {
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.link-item:hover .link-arrow {
  color: var(--primary-green);
  transform: translateX(5px);
}

/* カテゴリーヘッダーの改善 */
.link-category {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.link-category::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: var(--gradient-accent);
  opacity: 0.03;
  border-radius: 50%;
  pointer-events: none;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.category-icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--gradient-forest);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(107,142,92,0.2);
  position: relative;
  overflow: hidden;
}

.category-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3));
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.link-category:hover .category-icon-wrapper::before {
  transform: translateX(100%);
}

.category-icon {
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 1;
}

.category-title h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--dark-forest);
  margin-bottom: 0.3rem;
}

.category-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ニュース一覧の改善スタイル */
.news-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.filter-button {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--accent-sand);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button:hover {
  background: var(--accent-sand);
  transform: translateY(-1px);
}

.filter-button.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

/* ニュースグリッドレイアウト */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.news-grid .list-item {
  height: 100%;
}

.news-grid .news-item-with-thumbnail {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.news-grid .news-item-with-thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.news-grid .news-thumbnail {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0;
}

.news-grid .news-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-grid .news-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.news-grid .news-content h2::after {
  display: none;
}

.news-grid .news-content h2 a {
  color: var(--dark-forest);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-grid .news-content h2 a:hover {
  color: var(--primary-green);
}

.news-grid .news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--accent-sand);
}

.news-grid .news-content > p {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ニュースのタイムラインビュー */
.news-timeline {
  position: relative;
  padding-left: 2rem;
}

.news-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-green), var(--accent-sage));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -2.4rem;
  top: 0.5rem;
  width: 15px;
  height: 15px;
  background: var(--primary-green);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  background: var(--primary-terra);
}

/* ビュー切り替えボタン */
.view-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  background: white;
  padding: 0.3rem;
  border-radius: 25px;
  box-shadow: var(--shadow-xs);
}

.view-button {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.view-button:hover {
  background: var(--accent-sand);
  color: var(--text-primary);
}

.view-button.active {
  background: var(--primary-green);
  color: white;
}

.view-button i {
  font-size: 1rem;
}

/* ページネーション */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination-button {
  padding: 0.7rem 1.2rem;
  background: white;
  border: 2px solid var(--accent-sand);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pagination-button:hover {
  background: var(--accent-sand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pagination-button.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  cursor: default;
}

.pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-button.disabled:hover {
  background: white;
  transform: none;
  box-shadow: none;
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 1rem;
}

/* 年別アーカイブ */
.news-archive {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  margin-top: 3rem;
}

.archive-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--dark-forest);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.archive-title i {
  color: var(--primary-terra);
}

.archive-years {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.archive-year {
  position: relative;
}

.year-button {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-sand), white);
  border: 2px solid var(--accent-sand);
  border-radius: 25px;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.year-button:hover {
  background: linear-gradient(135deg, var(--primary-terra), var(--accent-sand));
  border-color: var(--primary-terra);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.year-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-green);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

/* カテゴリー統計 */
.category-stats {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.stats-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--dark-forest);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.stats-title i {
  color: var(--primary-green);
}

.category-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-name {
  min-width: 120px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.bar-container {
  flex-grow: 1;
  height: 30px;
  background: var(--light-cream);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-sage));
  border-radius: 15px;
  transition: width 1s ease-out;
  position: relative;
  overflow: hidden;
}

.bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

.bar-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ニュース一覧の拡張機能用スタイル */
.news-controls {
  margin-bottom: 2rem;
}

/* ヒーロー検索セクション */
.news-hero-search {
  position: relative;
  margin: -2.5rem -2.5rem 3rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-sage) 100%);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.search-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.search-title {
  color: white;
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.search-title::after {
  display: none;
}

.search-title i {
  font-size: 2.5rem;
  opacity: 0.9;
}

.search-box {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 1.2rem 3.5rem;
  border: 3px solid transparent;
  border-radius: 50px;
  font-size: 1.1rem;
  background: var(--light-cream);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-green);
  background: white;
  box-shadow: 0 0 0 4px rgba(107,142,92,0.1);
}

.search-icon-left {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-clear:hover {
  color: var(--primary-terra);
  transform: translateY(-50%) scale(1.1);
}

.search-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.suggestion-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.suggestion-tag {
  background: var(--accent-sand);
  border: 2px solid transparent;
  border-radius: 25px;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark-forest);
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-tag:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107,142,92,0.2);
}

/* フィルターセクション */
.news-filters {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.filter-icon {
  color: var(--primary-green);
  font-size: 1.1rem;
}

.filter-select {
  padding: 0.7rem 2.5rem 0.7rem 1.2rem;
  border: 2px solid var(--accent-sand);
  border-radius: 30px;
  background: white;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B8E5C'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.2rem;
}

.filter-select:hover {
  border-color: var(--primary-green);
  background-color: rgba(107,142,92,0.05);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(107,142,92,0.1);
}

.results-count {
  margin-left: auto;
  font-weight: 600;
  color: var(--text-secondary);
}

.results-count span {
  color: var(--primary-green);
  font-size: 1rem;
}

/* ビュー切り替え */
.view-switcher {
  display: flex;
  background: var(--light-cream);
  border-radius: 25px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.view-button {
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.view-button:hover {
  color: var(--primary-green);
}

.view-button.active {
  background: white;
  color: var(--primary-green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ニュースグリッド - タイルレイアウト */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 3rem;
}

.news-grid .list-item {
  height: 100%;
}

.news-tile {
  display: block;
  height: 100%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.news-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.news-tile-image {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--light-cream);
}

.news-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-tile:hover .news-tile-image img {
  transform: scale(1.1);
}

.news-tile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-sand) 0%, var(--light-cream) 100%);
}

.news-tile-placeholder i {
  font-size: 3rem;
  color: var(--primary-terra);
  opacity: 0.3;
}

.news-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,74,61,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-tile:hover .news-tile-overlay {
  opacity: 1;
}

.read-more {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more i {
  transition: transform 0.3s ease;
}

.news-tile:hover .read-more i {
  transform: translateX(4px);
}

.news-tile-content {
  padding: 1rem;
}

.news-tile-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.news-tile-date i {
  color: var(--primary-terra);
}

.news-tile-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-forest);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-tile-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-tag {
  background: rgba(156,175,136,0.2);
  color: var(--primary-green);
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.news-tile:hover .category-tag {
  background: var(--primary-green);
  color: white;
}

/* リスト表示用のスタイル調整 */
.news-list-view .news-tile {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: auto;
}

.news-list-view .news-tile-image {
  height: 180px;
}

.news-list-view .news-tile-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.news-list-view .news-tile-title {
  font-size: 1.4rem;
  -webkit-line-clamp: 3;
}

/* 検索結果なしメッセージ */
.no-results {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text-secondary);
}

.no-results i {
  font-size: 5rem;
  color: var(--accent-sand);
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0.5;
}

.no-results p {
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

/* ページネーション */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination-button {
  padding: 0.8rem 1.5rem;
  background: white;
  border: 2px solid var(--accent-sand);
  border-radius: 30px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-button:hover:not(:disabled) {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107,142,92,0.2);
}

.pagination-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1rem;
}

.pagination-info span {
  color: var(--primary-green);
  font-size: 1rem;
}

/* 年別アーカイブ */
.news-archive {
  background: linear-gradient(135deg, rgba(107,142,92,0.05) 0%, rgba(156,175,136,0.05) 100%);
  padding: 2.5rem;
  border-radius: 10px;
  margin-top: 3rem;
  border: 1px solid rgba(107,142,92,0.1);
}

.archive-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--dark-forest);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.archive-title i {
  color: var(--primary-terra);
  font-size: 1.8rem;
}

.archive-years {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.year-button {
  position: relative;
  padding: 1rem 1.5rem;
  background: white;
  border: 2px solid var(--accent-sand);
  border-radius: 30px;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.year-button:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(107,142,92,0.2);
}

.year-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--primary-terra);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(200,149,107,0.3);
}

/* レスポンシブ対応 */
@ media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .news-hero-search {
    margin: -2.5rem -1.5rem 2rem;
    padding: 3rem 1.5rem;
  }
  
  .search-title {
    font-size: 1.5rem;
  }
  
  .search-box {
    padding: 1rem;
  }
  
  .search-input {
    font-size: 1rem;
    padding: 1rem 3rem;
  }
  
  .search-suggestions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .suggestion-label {
    width: 100%;
    text-align: center;
  }
  
  .news-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-select {
    width: 100%;
  }
  
  .results-count {
    margin-left: 0;
    text-align: center;
    width: 100%;
    order: -1;
  }
  
  .view-switcher {
    width: 100%;
    justify-content: center;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-list-view .news-tile {
    grid-template-columns: 1fr;
  }
  
  .news-list-view .news-tile-image {
    height: 140px;
  }
  
  .news-list-view .news-tile-content {
    padding: 1rem;
  }
  
  .archive-years {
    justify-content: center;
  }
}


/* ニュース個別記事ページのスタイル */
.single-article {
  max-width: 900px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 3rem;
}

.article-meta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-terra);
  font-weight: 600;
  font-size: 1.1rem;
}

.article-date i {
  font-size: 1rem;
}

.article-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-categories .category-tag {
  background: linear-gradient(135deg, rgba(156,175,136,0.2), rgba(156,175,136,0.1));
  color: var(--primary-green);
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(156,175,136,0.3);
  transition: all 0.3s ease;
}

.article-categories .category-tag:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107,142,92,0.2);
}

.article-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--dark-forest);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.article-title::after {
  display: none;
}

.article-thumbnail {
  margin-bottom: 3rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--dark-forest);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-sand);
}

.article-content h2::after {
  display: none;
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary-green);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3::after {
  display: none;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.article-content strong {
  color: var(--dark-forest);
  font-weight: 600;
}

.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--accent-sand);
}

.back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--accent-sand), rgba(229,212,184,0.5));
  color: var(--dark-forest);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(229,212,184,0.3);
}

.back-to-list:hover {
  background: linear-gradient(135deg, var(--primary-terra), var(--accent-sand));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200,149,107,0.3);
}

.back-to-list i {
  transition: transform 0.3s ease;
}

.back-to-list:hover i {
  transform: translateX(-4px);
}

/* レスポンシブ対応（個別記事ページ） */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
  }
  
  .article-content h3 {
    font-size: 1.25rem;
  }
  
  .article-meta {
    gap: 1rem;
  }
  
  .article-date {
    font-size: 1rem;
  }
}

/* ニュースタイルのサイズ修正 - 緊急対応 */
.news-grid {
  display: grid \!important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) \!important;
  gap: 20px \!important;
  padding: 0 \!important;
}

.news-grid .list-item {
  max-width: 100% \!important;
  margin: 0 \!important;
  padding: 0 \!important;
  display: block \!important;
}

.news-grid .news-tile {
  width: 100% \!important;
  max-width: 100% \!important;
  margin: 0 \!important;
}

.news-tile-image {
  height: 160px \!important;
  max-height: 160px \!important;
}

.news-tile-content {
  padding: 15px \!important;
}

.news-tile-title {
  font-size: 1.1rem \!important;
  margin-bottom: 0.5rem \!important;
}

/* 大画面用の調整 */
@media (min-width: 1400px) {
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) \!important;
  }
}

/* 中画面用の調整 */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) \!important;
  }
}

/* モバイル用の調整 */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr \!important;
  }
}

/* 古いニューススタイルの無効化 */
.news-item-with-thumbnail {
  display: none \!important;
}

/* グリッド表示時のスタイル強制 */
.news-grid .news-item-with-thumbnail {
  display: block \!important;
  grid-template-columns: unset \!important;
  gap: unset \!important;
  padding: 0 \!important;
  background: transparent \!important;
  margin: 0 \!important;
}

.news-grid .news-item-with-thumbnail img.news-thumbnail {
  display: none \!important;
}

.news-grid .news-item-with-thumbnail .news-content {
  padding: 0 \!important;
}

/* list-itemの中身を確実に表示 */
.news-grid .list-item > * {
  width: 100% \!important;
}

/* リスト表示（タイムライン）の改善 */
.news-list-view {
  display: block \!important;
}

.news-list-view .list-item {
  margin-bottom: 20px \!important;
}

.news-list-view .news-tile {
  display: flex \!important;
  flex-direction: row \!important;
  height: auto \!important;
  min-height: 180px \!important;
  max-height: 200px \!important;
  border-radius: 12px \!important;
  overflow: hidden \!important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) \!important;
}

.news-list-view .news-tile-image {
  flex-shrink: 0 \!important;
  width: 280px \!important;
  height: auto \!important;
  min-height: 100% \!important;
  position: relative \!important;
  overflow: hidden \!important;
}

.news-list-view .news-tile-image img {
  width: 100% \!important;
  height: 100% \!important;
  object-fit: cover \!important;
  object-position: center \!important;
}

.news-list-view .news-tile-placeholder {
  width: 100% \!important;
  height: 100% \!important;
  min-height: 180px \!important;
  display: flex \!important;
  align-items: center \!important;
  justify-content: center \!important;
}

.news-list-view .news-tile-overlay {
  display: none \!important;
}

.news-list-view .news-tile-content {
  flex: 1 \!important;
  padding: 1.5rem 2rem \!important;
  display: flex \!important;
  flex-direction: column \!important;
  justify-content: center \!important;
  min-width: 0 \!important;
}

.news-list-view .news-tile-date {
  font-size: 0.9rem \!important;
  margin-bottom: 0.8rem \!important;
}

.news-list-view .news-tile-title {
  font-size: 1.3rem \!important;
  line-height: 1.4 \!important;
  margin-bottom: 0.8rem \!important;
  display: -webkit-box \!important;
  -webkit-line-clamp: 2 \!important;
  -webkit-box-orient: vertical \!important;
  overflow: hidden \!important;
}

.news-list-view .news-tile-categories {
  margin-top: auto \!important;
}

.news-list-view .category-tag {
  padding: 0.3rem 0.8rem \!important;
  font-size: 0.8rem \!important;
}

/* ホバー効果 */
.news-list-view .news-tile:hover {
  transform: translateX(5px) \!important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) \!important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .news-list-view .news-tile {
    flex-direction: column \!important;
    max-height: none \!important;
  }
  
  .news-list-view .news-tile-image {
    width: 100% \!important;
    height: 200px \!important;
  }
  
  .news-list-view .news-tile-content {
    padding: 1.2rem \!important;
  }
  
  .news-list-view .news-tile-title {
    font-size: 1.1rem \!important;
  }
}

/* ビュー切り替えボタンの改善 */
.view-switcher {
  display: flex \!important;
  background: var(--light-cream) \!important;
  border-radius: 25px \!important;
  padding: 0.25rem \!important;
  gap: 0.25rem \!important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) \!important;
}

.view-button {
  padding: 0.6rem 1.2rem \!important;
  background: transparent \!important;
  border: none \!important;
  border-radius: 20px \!important;
  color: var(--text-secondary) \!important;
  cursor: pointer \!important;
  transition: all 0.3s ease \!important;
  font-size: 1rem \!important;
  display: flex \!important;
  align-items: center \!important;
  gap: 0.5rem \!important;
}

.view-button:hover {
  color: var(--primary-green) \!important;
  background: rgba(107,142,92,0.05) \!important;
}

.view-button.active {
  background: white \!important;
  color: var(--primary-green) \!important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) \!important;
  font-weight: 600 \!important;
}

.view-button i {
  font-size: 1.1rem \!important;
}

/* リスト表示時の追加スタイル */
.news-list-view .news-tile {
  position: relative \!important;
  background: white \!important;
  transition: all 0.3s ease \!important;
}

.news-list-view .news-tile::before {
  content: "" \!important;
  position: absolute \!important;
  left: 0 \!important;
  top: 0 \!important;
  bottom: 0 \!important;
  width: 4px \!important;
  background: var(--primary-terra) \!important;
  opacity: 0 \!important;
  transition: opacity 0.3s ease \!important;
}

.news-list-view .news-tile:hover::before {
  opacity: 1 \!important;
}

/* リンクページのスタイル */
.links-page {
  padding: 2rem 0;
  background: var(--light-cream);
  min-height: 100vh;
  position: relative;
}

/* 背景装飾 */
.links-decoration {
  position: fixed;
  background: radial-gradient(circle, rgba(156,175,136,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.links-decoration.decoration-1 {
  width: 600px;
  height: 600px;
  top: -300px;
  right: -300px;
  animation: float 20s ease-in-out infinite;
}

.links-decoration.decoration-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -200px;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ヒーローセクション */
.links-hero {
  text-align: center;
  padding: 4rem 0 3rem;
  position: relative;
  z-index: 1;
}

.links-hero-content h1 {
  font-size: 3rem;
  color: var(--dark-forest);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.links-hero-content h1::after {
  display: none;
}

.links-hero-content h1 i {
  color: var(--primary-green);
  font-size: 2.5rem;
}

.links-hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* リンクコンテナ */
.links-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* カテゴリーセクション */
.link-category {
  margin-bottom: 4rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-sand);
}

.category-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-sage) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(107,142,92,0.2);
}

.category-icon {
  font-size: 1.8rem;
  color: white;
}

.category-title h2 {
  font-size: 2rem;
  margin: 0;
  color: var(--dark-forest);
}

.category-title h2::after {
  display: none;
}

.category-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0;
}

/* リンクグリッド */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* リンクアイテム */
.link-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: white;
  border: 2px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(107,142,92,0.05) 0%, transparent 100%);
  transition: width 0.3s ease;
  z-index: 0;
}

.link-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: var(--primary-green);
}

.link-item:hover::before {
  width: 100%;
}

/* リンクアイコン */
.link-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-sage) 0%, var(--primary-green) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.link-icon i {
  font-size: 1.4rem;
  color: white;
}

.link-item:hover .link-icon {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 6px 16px rgba(107,142,92,0.3);
}

/* リンクコンテンツ */
.link-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.link-text {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark-forest);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.link-item:hover .link-text {
  color: var(--primary-green);
}

.link-description {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* リンク矢印 */
.link-arrow {
  font-size: 1.2rem;
  color: var(--primary-terra);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.link-item:hover .link-arrow {
  transform: translateX(6px);
  color: var(--primary-green);
}

/* SNSリンク */
.sns-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sns-link i {
  font-size: 1.3rem;
}

.sns-link.twitter {
  background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%);
  color: white;
}

.sns-link.twitter:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(29,161,242,0.3);
}

.sns-link.youtube {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
  color: white;
}

.sns-link.youtube:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,0,0,0.3);
}

/* クイックアクセスバー */
.quick-access-bar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.quick-link {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid var(--accent-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--primary-green);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
}

.quick-link:hover {
  transform: translateY(-3px);
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
  box-shadow: 0 8px 20px rgba(107,142,92,0.3);
}

.quick-link[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-forest);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.quick-link[data-tooltip]:hover::before {
  opacity: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .links-hero-content h1 {
    font-size: 2rem;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }
  
  .link-item {
    padding: 1.25rem;
  }
  
  .link-icon {
    width: 40px;
    height: 40px;
  }
  
  .link-icon i {
    font-size: 1.2rem;
  }
  
  .link-text {
    font-size: 1.05rem;
  }
  
  .quick-access-bar {
    bottom: 1rem;
    right: 1rem;
  }
  
  .quick-link {
    width: 45px;
    height: 45px;
  }
}

/* リンクページの改善されたスタイル */
.links-grid-improved {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* 所属機関セクションの特別な装飾 - 視認性向上 */
.link-category:first-of-type .link-item {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #faf9f7 100%);
  border: 2px solid rgba(107,142,92,0.2);
}

.link-category:first-of-type .link-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at center, rgba(107,142,92,0.05) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(20px, -20px);
}

/* 所属機関のリンクアイコンを特別にスタイリング */
.link-category:first-of-type .link-icon {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-sage) 100%);
  box-shadow: 0 4px 12px rgba(107,142,92,0.3);
}

.link-category:first-of-type .link-icon i {
  color: white;
  font-size: 1.6rem;
}

/* 所属機関のテキストを見やすく */
.link-category:first-of-type .link-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-forest);
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.link-category:first-of-type .link-item:hover .link-text {
  color: var(--primary-green);
  border-bottom-color: var(--primary-green);
}

/* 所属機関の説明文を強調 */
.link-category:first-of-type .link-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  opacity: 1;
  transform: none;
  margin-top: 0.5rem;
}

/* 階層的な視覚表現 */
.link-category:first-of-type .link-item:nth-child(2) {
  margin-left: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f6f3 100%);
}

.link-category:first-of-type .link-item:nth-child(3) {
  margin-left: 4rem;
  background: linear-gradient(135deg, #ffffff 0%, #f6f4f0 100%);
}

/* ホバー時の特別なエフェクト */
.link-category:first-of-type .link-item:hover {
  background: white;
  border-color: var(--primary-green);
  box-shadow: 0 8px 24px rgba(107,142,92,0.2);
}

/* 矢印アイコンをより目立たせる */
.link-category:first-of-type .link-arrow {
  font-size: 1.3rem;
  color: var(--primary-green);
  opacity: 0.8;
}

.link-category:first-of-type .link-item:hover .link-arrow {
  opacity: 1;
  transform: translateX(8px);
}

.link-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(229,212,184,0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100%;
}

.link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: var(--primary-green);
}

/* アイコンヘッダー */
.link-card-header {
  height: 110px;
  background: linear-gradient(135deg, var(--accent-sage) 0%, var(--primary-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.link-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: floatBubble 15s ease-in-out infinite;
}

.link-card-header i {
  font-size: 3rem;
  color: white;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.link-card:hover .link-card-header i {
  transform: scale(1.15) rotate(5deg);
}

/* カードボディ */
.link-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.link-card-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark-forest);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.link-card:hover .link-card-title {
  color: var(--primary-green);
}

.link-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.link-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(229,212,184,0.2);
}

.link-card-type {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-card-arrow {
  font-size: 1.2rem;
  color: var(--primary-terra);
  transition: all 0.3s ease;
}

.link-card:hover .link-card-arrow {
  transform: translateX(6px);
  color: var(--primary-green);
}

/* カラーバリエーション */
.link-card.primary .link-card-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-forest) 100%);
}

.link-card.secondary .link-card-header {
  background: linear-gradient(135deg, var(--primary-terra) 0%, #A67C52 100%);
}

.link-card.info .link-card-header {
  background: linear-gradient(135deg, #5A6C7D 0%, #3A4A5C 100%);
}

.link-card.accent .link-card-header {
  background: linear-gradient(135deg, #9CAF88 0%, #7A8F6C 100%);
}

/* SNSリンク改善 */
.sns-links-improved {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.sns-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: white;
  border: 2px solid var(--accent-sand);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.sns-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary-green);
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.sns-card:hover::before {
  width: 300%;
  height: 300%;
}

.sns-card-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.sns-card-text {
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.sns-card-handle {
  font-size: 0.9rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.sns-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(107,142,92,0.2);
}

.sns-card:hover .sns-card-icon,
.sns-card:hover .sns-card-text,
.sns-card:hover .sns-card-handle {
  color: white;
}

/* Twitter専用スタイル */
.sns-card.twitter {
  border-color: #1DA1F2;
}

.sns-card.twitter .sns-card-icon {
  color: #1DA1F2;
}

.sns-card.twitter::before {
  background: #1DA1F2;
}

/* YouTube専用スタイル */
.sns-card.youtube {
  border-color: #FF0000;
}

.sns-card.youtube .sns-card-icon {
  color: #FF0000;
}

.sns-card.youtube::before {
  background: #FF0000;
}
