/*--------------------------------------------------------------
# SnapFolio Style Portfolio - Adachin.me
--------------------------------------------------------------*/

:root {
  --primary-color: #2E8B57; /* シーグリーン - 自然的で落ち着いた印象 */
  --secondary-color: #6c757d;
  --accent-color: #3CB371; /* ミディアムシーグリーン - 明るいアクセント */
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --white: #ffffff;
  --text-color: #333333;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* デフォルトの背景色設定をオーバーライド（空白になるtransparentを上書き） */
a, button, [role=button], 
.form-control::-ms-expand,
.nav-link, .page-link,
.list-group-item, .dropdown-item,
.btn-link, .input-group-text,
.custom-control-label::before,
.custom-file-label, .custom-select {
  background-color: initial;
}

body {
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: var(--white);
  padding: 76px 0 40px 0; /* フッタースペースを縮小 */
}

/* Container adjustments - Full width with proper centering */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    width: 98%;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 900px;
    width: 98%;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 98%;
    width: 98%;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 100%;
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Navbar container fix */
.navbar .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

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

h3 {
  font-size: 1.75rem;
}

p {
  color: var(--text-muted);
  line-height: 1.8;
}

.lead {
  font-size: 1.2rem;
  font-weight: 400;
}

/* Header & Navigation - Make sure it's fixed and consistent with footer */
.navbar {
  background: var(--dark-color); /* Changed from transparent to match footer */
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Added shadow to match footer */
}

.navbar.scrolled {
  background: var(--dark-color); /* Match footer background */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Match footer shadow */
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  padding-bottom: 0;
  position: relative;
}

/* ブランド名のリンクが常に白色になるように全ての状態に対応 */
.navbar-brand:hover,
.navbar-brand:focus,
.navbar-brand:active,
.navbar-brand:visited {
  color: var(--white);
  text-decoration: none;
}

/* セクションタイトルのような下線（現在は非表示） */
.navbar-brand::after {
  content: none; /* contentをnoneに設定することで疑似要素を非表示にする */
  display: none; /* 念のため表示も無効化 */
}

/* ホバー時の下線動作（現在は非表示） */
.navbar-brand:hover::after {
  display: none;
  transform: none;
}

.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ナビゲーションリンクが常に白色になるように全ての状態に対応 */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link:visited {
  color: var(--white);
}

/* Bootstrapのデフォルトスタイルをオーバーライド */
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:active,
.navbar-light .navbar-nav .nav-link:visited,
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:active,
.navbar-dark .navbar-nav .nav-link:visited {
  color: var(--white);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section - Adjusted for fixed header and centered layout */
.hero {
  background: linear-gradient(135deg, #4B3F72 0%, #3a3159 100%); /* Updated to match new primary color */
  color: var(--white);
  padding: 100px 0 60px; /* Reduced padding to make hero section smaller */
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
}

.hero-content .social-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero .lead {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
  max-width: 800px;
  color: var(--white); /* SREのテキストを白色に設定 */
  margin-left: auto;
  margin-right: auto;
}

.hero-profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-hover);
  object-fit: cover;
  animation: fadeInUp 1s ease 0.4s both;
}

/* プロフィール画像コンテナと画像切り替えアニメーション */
.profile-image-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  border: 5px solid var(--white);
}

.profile-image-container .hero-profile-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  margin-bottom: 0;
  transition: all 0.4s ease;
  box-shadow: none;
}

.profile-image-container .main-image {
  opacity: 1;
  z-index: 2;
}

.profile-image-container .hover-image {
  opacity: 0;
  z-index: 1;
  transform: scale(1.1);
}

.profile-image-container:hover .main-image {
  opacity: 0;
  transform: scale(0.9);
}

.profile-image-container:hover .hover-image {
  opacity: 1;
  transform: scale(1);
}

/* プロフィール画像のホバー効果強化 */
.profile-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  opacity: 0;
  z-index: 3;
  transition: all 0.4s ease;
}

.profile-image-container:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.85);
}

.profile-image-container:hover::after {
  opacity: 1;
}

/* プロフィール画像の明示的なアニメーション定義 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes scaleUp {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* アニメーションの明示的な適用 */
.profile-image-container:hover .hover-image {
  animation: fadeIn 0.5s forwards;
}

.profile-image-container:hover .main-image {
  animation: fadeOut 0.5s forwards;
}

.profile-image-container:hover {
  animation: scaleUp 0.3s forwards;
}

@media (max-width: 768px) {
  .profile-image-container {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 576px) {
  .profile-image-container {
    width: 140px;
    height: 140px;
    border-width: 3px;
  }
}

/* Enhanced smooth scrolling and section spacing */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Matches navbar height */
}

/* Section spacing adjusted for fixed header and footer */
.section {
  padding: 70px 0 60px; /* 上部余白80pxから70pxに、下部余白を60pxに調整 */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
  margin: 0 auto;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Center all section content with improved layout */
.section .row {
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Ensure all grid items are properly centered */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: 0;
  margin-left: 0;
  width: 100%;
  justify-content: center;
  padding: 0;
}

.col-lg-4, .col-lg-6, .col-lg-8, .col-md-4, .col-md-6, .col-md-8,
.col-sm-4, .col-sm-6, .col-sm-12, .col-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 10px;
  padding-left: 10px;
}

.col-lg-4 > *, .col-lg-6 > *, .col-lg-8 > *, 
.col-md-4 > *, .col-md-6 > *, .col-md-8 > *,
.col-sm-4 > *, .col-sm-6 > *, .col-sm-12 > *, .col-12 > * {
  width: 100%;
}

/* Flexbox Layout System - Replace Bootstrap Grid */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px; /* コンテナ全体に最大幅を設定 */
}

.flex-item {
  flex: 0 0 calc(33.333% - 1.5rem);
  min-width: 280px;
  max-width: 400px;
  margin-bottom: 1rem;
}

.flex-item-half {
  flex: 0 0 calc(50% - 1.5rem);
  min-width: 280px;
  margin-bottom: 1rem;
  max-width: 500px; /* 追加: 最大幅を制限 */
}

.flex-item-wide {
  flex: 0 0 calc(66.666% - 1.5rem);
  min-width: 280px;
  margin-bottom: 1rem;
  max-width: 800px; /* 追加: 最大幅を制限 */
}

.flex-item-full {
  flex: 0 0 100%;
  margin-bottom: 1rem;
  max-width: 1000px; /* 追加: 最大幅を制限 */
}

/* メインのflex-item定義を一つに統合 */
.flex-item {
  width: 100%;
  max-width: 600px; /* 最大幅を小さく調整 */
  margin: 0 auto;
}

@media (max-width: 768px) {
  .flex-item, .flex-item-half, .flex-item-wide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .flex-item {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .flex-container {
    gap: 1rem;
  }
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  background: var(--white);
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Blog Cards Section */
.blog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  padding: 2.5rem 1.5rem;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
}

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

.blog-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.blog-card:hover .blog-icon {
  transform: scale(1.1);
  background: #3c3260; /* Darker shade of primary color */
}

.blog-content {
  margin-top: 1rem;
}

.blog-content h4 {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.blog-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* About Me Section Styles */
.about-summary {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.about-summary .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* About Me Section Text Style */
.about-text {
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.8;
  text-align: left;
  font-size: 0.95rem;
}

/* Skills Section Styles */
.skill-item {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.skill-item .icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-item h4 {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.tech-icons i {
  font-size: 3rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.tech-icons i:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(75, 63, 114, 0.25);
}

.btn-primary:hover {
  background: #3a3159; /* 少し暗めのパープル */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(75, 63, 114, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(75, 63, 114, 0.3);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

.btn-light {
  background-color: var(--white);
  color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-light:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* Contactセクションのボタンを目立たせる */
.contact-item .btn-outline-primary {
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-width: 2px;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.contact-item .btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

/* Timeline - Properly centered */
.timeline {
  position: relative;
  padding: 4rem 0 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible; /* 重要: はみ出した要素を表示 */
  min-height: 200px; /* 最小高さを設定 */
}

/* 全体のタイムラインの間隔と表示を改善 */
.timeline {
  padding-top: 2rem;
  padding-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 縦線を表示しないため、.timeline::before は削除 */

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem; /* 項目間の間隔を縮小 */
  padding: 0 0 10px 0; /* 下部パディングを縮小 */
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: center;
}

/* 各タイムラインアイテムの後のコンテンツを削除（縦線が表示されないように） */
.timeline-item:after {
  content: none;
  display: none;
}

/* 最初と最後のアイテムのための特別なスタイルも不要 */
.timeline-item:first-child:after,
.timeline-item:last-child:after {
  display: none;
}

.timeline-item::before {
  content: none; /* ドットを非表示にする */
  display: none; /* 要素自体も非表示に */
}

/* ホバー効果も無効化 */
.timeline-item:hover::before {
  display: none;
  transform: none;
  box-shadow: none;
}

.timeline-content {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem; /* パディングを小さく */
  box-shadow: var(--shadow);
  position: relative;
  width: 90%; /* 少し幅を狭く */
  max-width: 700px; /* 最大幅を小さく */
  margin: 0 auto;
  z-index: 2; /* z-indexを調整して縦線の前に表示 */
  border: 1px solid rgba(46, 139, 87, 0.1); /* 微妙な境界線を追加 */
  transition: all 0.3s ease; /* ホバー効果のためのトランジション追加 */
  /* カード感を強調 */
  border-left: 4px solid var(--primary-color);
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* カードの高さを揃える */
.timeline-item {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* カードの内部余白を統一 */
.timeline-content {
  padding: 2rem;
  height: 100%; /* 高さを100%に */
  box-sizing: border-box;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .timeline-content {
    padding: 1.2rem;
    width: 95%;
  }
  
  .timeline-content h3 {
    font-size: 1.05rem;
  }
  
  .timeline-content p {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }
  
  .timeline-item {
    margin-bottom: 2rem;
  }
  
  .timeline-date {
    font-size: 0.8rem;
    padding: 4px 12px;
  }
}

.timeline-content {
  display: flex;
  flex-direction: column;
}

/* テキストの間隔とバランスを改善 */
.timeline-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #555;
  white-space: normal;
  word-break: break-word;
  text-align: left;
  min-height: 3em; /* 最低限の高さを確保 */
}

/* 役職と会社名の表示を改善 */
.timeline-content h3 {
  margin-bottom: 1rem;
  line-height: 1.4;
  word-break: break-word;
  hyphens: auto;
}

/* 日付表示の改善 */
.timeline-content .timeline-date {
  margin-bottom: 0.8rem;
  display: inline-block;
}

/* ボタンの配置を下部に固定 */
.timeline-content .mt-3 {
  margin-top: auto;
  padding-top: 0.5rem;
}

.timeline-content:hover {
  transform: translateY(-5px); /* ホバー時に上に浮かせる */
  box-shadow: var(--shadow-hover); /* ホバー時の影を強調 */
  border-left-width: 6px; /* ホバー時に左ボーダーを太く */
}

.timeline-content::before {
  display: none;
}

.timeline-date {
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* タイムラインアイテムに交互のスタイルを適用 */
.timeline-item:nth-child(odd) .timeline-content {
  background-color: rgba(248, 249, 250, 1);
  border-left-color: var(--secondary-color);
}

.timeline-item:nth-child(even) .timeline-content {
  background-color: white;
}

/* タイムライン項目のホバー効果を強化 */
.timeline-content:hover .timeline-title {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

/* タイムラインの日付にホバー効果 */
.timeline-date:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* タイムラインのタイトルをより目立たせる */
.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #333;
  transition: color 0.3s ease;
  font-weight: 600;
  border-bottom: 2px dotted rgba(46, 139, 87, 0.2);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* タイムラインの会社名/役職名を強調 */
.timeline-content h3 {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding-right: 1rem;
  position: relative;
}

/* 会社名の後に飾り線を追加 */
.timeline-content h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* タイムラインの説明文に余白と行間を追加 */
.timeline-content p {
  min-height: 4.5em; /* 最低限の高さを確保 */
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #555;
}

/* Read Moreボタンをより目立たせる */
.timeline-content .btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.timeline-content .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Social icons in hero section */
.hero .social-icons {
  justify-content: center;
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.hero .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--light-color);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
}

.hero .social-icon:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(75, 63, 114, 0.2);
}

/* Portfolio Section */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
  width: 100%;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 110, 253, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-info {
  text-align: center;
  color: white;
  padding: 2rem;
}

.portfolio-info h4 {
  color: white;
  margin-bottom: 1rem;
}

.portfolio-info p {
  margin-bottom: 1.5rem;
}

/* Achievement item centering fix */
.achievement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 500px; /* 追加: 最大幅を制限 */
}

.achievement-item:hover {
  transform: translateY(-2px);
}

.achievement-item i {
  font-size: 1.5rem;
  min-width: 30px;
  display: flex;
  justify-content: center;
}

.achievement-item h6 {
  margin: 0;
  font-weight: 600;
}

.achievement-item small {
  color: var(--text-muted);
}

/* Contact Section */
.contact-item {
  text-align: center;
  padding: 1.5rem; /* パディングを少し減らして余白を詰める */
  background: var(--white);
  border-radius: 15px; /* 角丸を大きく */
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05); /* 微妙な境界線を追加 */
  margin-top: 0; /* 上部マージンを削除 */
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-item .icon {
  width: 80px; /* サイズを大きく */
  height: 80px; /* サイズを大きく */
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color) 70%); /* グラデーション角度と配分調整 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.8rem auto; /* 下部マージンを少し増やす */
  box-shadow: 0 8px 20px rgba(46, 139, 87, 0.3); /* 緑系の影でアイコンを目立たせる */
  border: 2px solid rgba(255, 255, 255, 0.2); /* 白いボーダーを追加 */
}

.contact-item .icon i {
  font-size: 2rem; /* サイズを大きくして視認性向上 */
  color: white; /* 明示的に白色を指定 */
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); /* 光彩効果を追加 */
}

.contact-item h5 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.social-links {
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--light-color);
  color: var(--primary-color);
  border-radius: 50%;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Make footer and navbar consistent in style */
.footer, .navbar {
  background: var(--dark-color);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Footer */
.footer {
  padding: 0.5rem 0; /* Reduced padding */
  width: 100%;
  position: fixed; /* Changed back to fixed for sticky footer */
  bottom: -100%; /* Hide initially, will be shown when at bottom */
  left: 0;
  z-index: 100;
  transition: bottom 0.3s ease-in-out; /* Smooth transition */
  backdrop-filter: blur(10px); /* Match navbar blur effect */
}

/* Adjust content padding */
body {
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: var(--white);
  padding: 76px 0 40px 0; /* フッタースペースを縮小 */
}

/* Make footer more compact */
.footer h5, .footer h6 {
  color: white;
  margin-bottom: 0.5rem; /* Reduced margin */
  font-size: 1rem; /* Smaller font size */
}

.footer p {
  color: var(--white); /* Match navbar text color */
  margin-bottom: 0; /* マージンを完全に削除 */
  font-size: 0.85rem; /* Slightly larger for better readability */
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.8rem; /* Reduced gap */
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.8rem; /* Smaller font */
}

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

.footer hr {
  border-color: #495057;
  margin: 0 0 0.3rem 0; /* さらに余白を縮小 */
}

/* Careerリンクセクションのスタイル */
.career-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.career-links .btn {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-width: 2px;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.career-links .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(46, 139, 87, 0.2);
}

@media (max-width: 576px) {
  .career-links {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
  }
  
  .career-links .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  position: relative; /* 位置関係を明確に */
}

.animate-on-scroll.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* スクロールアニメーション用スタイル */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  visibility: hidden;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.fade-up {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

/* AWS Summit用の特別なアニメーション - 高度なエフェクト */
.summit-reveal {
  opacity: 0;
  transform: scale(0.9) translateY(30px) perspective(1000px) rotateX(5deg);
  transition: all 1.2s cubic-bezier(0.5, 0, 0.1, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 12px;
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: pointer;
}

.summit-reveal.visible {
  opacity: 1;
  transform: scale(1) translateY(0) perspective(1000px) rotateX(0deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: float 6s infinite ease-in-out;
}

.summit-reveal img {
  transition: all 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  border-radius: 8px;
}

.summit-reveal.visible img {
  transform: scale(1.02) translateZ(20px);
  animation: subtle-pulse 5s infinite alternate ease-in-out;
}

/* グロー効果のある境界線 */
.summit-reveal::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #FF4500, #FF8C00, #FFD700, #32CD32, #1E90FF, #8A2BE2, #FF1493);
  border-radius: 14px;
  z-index: -1;
  animation: border-rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.8s ease;
  filter: blur(5px);
}

.summit-reveal.visible::before {
  opacity: 0.7;
}

/* 光沢効果 */
.summit-reveal::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.1) 45%, 
    rgba(255,255,255,0.4) 50%, 
    rgba(255,255,255,0.1) 55%, 
    rgba(255,255,255,0) 100%);
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 2;
  pointer-events: none;
}

.summit-reveal.visible::after {
  opacity: 1;
  animation: advanced-shine 2s ease-out forwards 0.8s;
}

/* ホバー時の強調効果 */
.summit-reveal:hover {
  transform: scale(1.03) translateY(-10px) perspective(1000px) rotateX(2deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 30px rgba(46, 139, 87, 0.3);
}

.summit-reveal:hover img {
  transform: scale(1.05) translateZ(30px);
}

.summit-reveal:hover::after {
  animation: advanced-shine 1.5s ease-out infinite;
}

.summit-reveal:hover::before {
  opacity: 0.9;
  filter: blur(4px);
  animation: border-rotate 2s linear infinite;
}

/* クリック時のエフェクト */
.summit-reveal:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

/* アニメーションキーフレーム */
@keyframes advanced-shine {
  0% {
    top: -100%;
    left: -100%;
    opacity: 0.7;
  }
  100% {
    top: 100%;
    left: 100%;
    opacity: 0;
  }
}

@keyframes border-rotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: scale(1) translateY(0) perspective(1000px) rotateX(0deg);
  }
  50% {
    transform: scale(1.01) translateY(-10px) perspective(1000px) rotateX(2deg);
  }
}

@keyframes subtle-pulse {
  0% {
    transform: scale(1.02) translateZ(20px);
  }
  100% {
    transform: scale(1.04) translateZ(30px);
  }
}

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

.fade-up.visible {
  animation-name: fadeInUp;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 90px 0 40px; /* Reduced padding for mobile */
    text-align: center;
  }
  
  .hero-profile-img {
    width: 150px;
    height: 150px;
  }
  
  .hero .lead {
    font-size: 1.1rem;
    padding: 0 15px;
    color: var(--white); /* タブレット表示でもSREのテキストを白色に設定 */
  }
  
  .section {
    padding: 60px 0;
    width: 100%;
  }
  
  /* タイムライン縦線は表示しない */
  
  .timeline-item {
    padding: 0 0 30px 0; /* モバイルでパディングを増やす */
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 3rem; /* モバイルでは少し短く */
  }
  
  .timeline-item::before {
    display: none;
    content: none;
  }

  /* タイムラインアイテムの後の縦線も表示しない */
  .timeline-item:after {
    display: none;
  }
  
  .timeline-content {
    width: 98%;
  }
  
  .tech-icons {
    gap: 1rem;
  }
  
  .tech-icons i {
    font-size: 2rem;
  }
  
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .container {
    padding: 0;
  }
  
  .row {
    margin: 0;
    padding: 0;
  }
  
  /* Footer adjustments for mobile */
  .footer {
    padding: 0.8rem 0 0.5rem 0;
  }
  
  body {
    padding: 65px 0 120px 0; /* Adjusted for navbar and footer on mobile - combined into one property */
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 80px 0 40px 0; /* Reduced padding for small screens */
    min-height: 60vh; /* Reduced min-height */
  }
  
  .hero-content {
    width: 100%;
    padding: 0 15px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero .lead {
    font-size: 0.95rem;
    color: var(--white); /* モバイル表示でもSREのテキストを白色に設定 */
  }
  
  .hero-profile-img {
    width: 140px;
    height: 140px;
    border-width: 3px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .container {
    padding: 0;
    width: 100%;
  }
  
  .row {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  .timeline-content {
    width: 100%;
    padding: 1.5rem;
  }
  
  .col-lg-4, .col-lg-6, .col-lg-8, .col-md-4, .col-md-6, .col-md-8,
  .col-sm-4, .col-sm-6, .col-sm-12, .col-12 {
    padding-right: 5px;
    padding-left: 5px;
  }
  
  /* Footer smaller on mobile */
  .footer {
    padding: 0.6rem 0 0.4rem 0;
  }
  
  .footer h5, .footer h6 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  
  .footer p {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }
  
  .footer-links a {
    font-size: 0.75rem;
  }
  
  body {
    padding: 60px 0 100px 0; /* Adjusted for navbar and footer on small screens - combined into one property */
  }
}

/* Additional styles to ensure hero is centered properly */
@media (min-width: 992px) {
  .hero {
    min-height: 50vh; /* Reduced height for larger screens */
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* YouTube Video Section */
.youtube-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.responsive-video-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.responsive-video {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Increased from previous 800px */
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 10px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.responsive-video:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 15px 40px;
}

.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* YouTube Video responsive adjustments */
@media (max-width: 1200px) {
  .responsive-video {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .responsive-video {
    max-width: 95%;
  }
}

@media (max-width: 576px) {
  .responsive-video {
    max-width: 100%;
  }
}

/* Custom utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-light-custom {
  background: #f8f9fa !important;
}

.rounded-custom {
  border-radius: 15px !important;
}

.shadow-custom {
  box-shadow: var(--shadow) !important;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--light-color);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
}

.social-icon:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(75, 63, 114, 0.2);
}

/* Education Section */
.education-timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.timeline-details {
  margin-top: 10px;
  margin-bottom: 15px;
  list-style-type: none;
  padding-left: 0;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  line-height: 1.6;
}

.timeline-details li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Education Card Specific Styles */
.time-period {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Outputs Section Styles */
.outputs-card .outputs-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.outputs-card .outputs-links li {
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.outputs-card .outputs-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.outputs-card .outputs-links a:hover {
  color: var(--primary-color);
}

.outputs-card .outputs-links i {
  margin-right: 8px;
  color: var(--primary-color);
}

.responsive-slide {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比率 */
  height: 0;
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.responsive-slide:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.responsive-slide iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* Get In Touchセクションの余白調整 */
#contact .section-title {
  margin-bottom: 1rem; /* 通常より少ない下マージン */
}

#contact .centered-content {
  margin-top: 0; /* 上部のマージンを削除 */
  padding-top: 0; /* 上部のパディングを削除 */
}

/* CareerセクションとOutputsセクション間の余白を縮める */
#career.section {
  padding-bottom: 0; /* 下部パディングを削除 */
}

#outputs.section {
  padding-top: 10px; /* 上部パディングを縮小 */
}

/* レスポンシブ対応 - モバイル表示での調整 */
@media (max-width: 768px) {
  #career.section {
    padding-bottom: 0;
  }

  #outputs.section {
    padding-top: 5px; /* モバイルではさらに余白を減らす */
  }
}

/* AWS Summit画像用スタイル */
.outputs-card img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-height: 200px;
  object-fit: cover;
  width: 100%;
}

.outputs-card img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* About セクションのAWS Summit画像用スタイル */
#about .aws-summit-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#about .aws-summit-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#about .aws-summit-container {
  margin-top: 2rem;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  #about .aws-summit-container {
    margin-top: 1.5rem;
  }
  
  #about .aws-summit-img {
    max-height: 250px;
  }
}

/* Bootstrapのデフォルトスタイルをオーバーライド */
.navbar-light .navbar-brand,
.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus,
.navbar-light .navbar-brand:active,
.navbar-light .navbar-brand:visited,
.navbar-dark .navbar-brand,
.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:focus,
.navbar-dark .navbar-brand:active,
.navbar-dark .navbar-brand:visited {
  color: var(--white);
}

@media (max-width: 576px) {
  .hero .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .hero .social-icons {
    gap: 0.7rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .hero .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .hero .social-icons {
    gap: 0.8rem;
  }
}

@media (max-width: 375px) {
  .hero .social-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .hero .social-icons {
    gap: 0.5rem;
  }
}

/* Awards & Achievements Section */
.achievements-section {
  max-width: 1200px;
  margin: 0 auto;
}

.achievements-section .flex-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* 大画面表示用のAwards & Achievementsセクション調整 */
@media (min-width: 1400px) {
  .achievements-section {
    max-width: 1000px; /* 大画面ではさらに狭く */
  }
  
  .achievements-section .flex-container {
    max-width: 900px;
  }
  
  .achievements-section .achievement-item {
    max-width: 400px; /* 大画面でより狭く */
  }
}

/* ホバー時のドット拡大効果を無効化 */
.timeline-content:hover + .timeline-item::before,
.timeline-item:hover::before {
  display: none;
  transform: none;
  box-shadow: none;
}

/* TechBull画像のアニメーション効果 */
.techbull-image {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.techbull-image:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* TechBull画像コンテナのスタイル */
.techbull-img-container {
  padding: 15px;
  border-radius: 8px;
  transition: all 0.4s ease;
}

.techbull-img-container:hover {
  background-color: rgba(240, 240, 250, 0.5);
}

/* TechBullセクションのコンテンツカードアニメーション */
#techbull .content-card {
  transition: all 0.4s ease;
  border-radius: 12px;
}

#techbull .content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

/* タイムラインのドットを強調（すでに実装済みの場合は上書き） */
.timeline-item::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.2);
}

/* タイムラインアイテム間の見えない接続線（垂直線は非表示のまま） */
.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0.3;
}

/* 現在進行中の経験（Present を含む項目）をハイライト */
.timeline-item:first-child .timeline-content,
.timeline-item:nth-child(2) .timeline-content {
  border-left-color: #ff6b6b;
  border-left-width: 5px;
}

.timeline-item:first-child .timeline-date,
.timeline-item:nth-child(2) .timeline-date {
  background-color: #ff6b6b;
}

/* アニメーションをより滑らかに */
.animate-on-scroll {
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* タイムラインコンテンツを小さくするための調整 */
.timeline-content h3 {
  font-size: 1.2rem; /* タイトルを小さく */
  margin-bottom: 0.7rem;
}

.timeline-content p {
  font-size: 0.9rem; /* 本文を小さく */
  margin-bottom: 1rem;
  min-height: 2.5em; /* 最低高さを小さく */
  line-height: 1.6;
}

.timeline-date {
  font-size: 0.85rem; /* 日付を小さく */
  padding: 5px 15px;
  margin-bottom: 0.7rem;
}

/* Read Moreボタンを小さく */
.timeline-content .btn-sm {
  padding: 5px 15px;
  font-size: 0.75rem;
}

/* タイムラインのドットも非表示に */
.timeline-item::before {
  display: none;
  content: none;
}

/* タイムライン全体のパディングを調整 */
.timeline {
  padding: 1rem 0 1rem;
}

/* タイムラインカードの上部余白を減らす */
.timeline-item:first-child .timeline-content {
  margin-top: 0.5rem;
}

/* すべてのタイムラインコンテンツの余白を調整 */
.timeline-content {
  padding: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* TechBullセクションのボタンスタイル */
.techbull-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.techbull-buttons .btn {
  margin-bottom: 10px;
  min-width: 140px;
  text-align: center;
}

/* スマホ表示でのTechBullボタン調整 */
@media (max-width: 576px) {
  .techbull-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .techbull-buttons .btn {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  #techbull .content-box {
    padding: 15px 10px;
  }
}

#techbull .content-box {
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#techbull .content-box:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
