/* 基本レイアウト */
.ob-about-component {
  max-width: min(800px, 90vw);
  margin: 0 auto;
  /* padding: clamp(40px, 8vw, 60px) clamp(16px, 4vw, 20px); */
  font-family: 'Noto Sans JP', sans-serif;
  /* スクロール動作確認用に余白を追加 */
}

/* コンテンツアイテム - 初期状態 */
.ob-content-item {
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ビューポートに入った時のクラス */
.ob-content-item.ob-is-visible {
  animation: fadeInUp 0.8s ease forwards;
}

/* ホバー効果 */
.ob-content-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* アニメーション遅延設定 */
.ob-content-item:nth-child(1) { animation-delay: 0.1s; }
.ob-content-item:nth-child(2) { animation-delay: 0.1s; }
.ob-content-item:nth-child(3) { animation-delay: 0.1s; }
.ob-content-item:nth-child(4) { animation-delay: 0.1s; }
.ob-content-item:nth-child(5) { animation-delay: 0.1s; }

/* レイアウト改善 */
.ob-content-item:nth-child(even) {
  text-align: right;
  padding-left: clamp(30px, 8vw, 60px);
}

.ob-content-item:nth-child(odd) {
  text-align: left;
  padding-right: clamp(30px, 8vw, 60px);
}

/* デコレーション要素の改善 */
.ob-content-item::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  border-radius: 2px;
  transform: scaleY(0); /* 初期状態 */
}

/* クラス付与時にアニメーション発火 */
.ob-content-item.ob-is-visible::before {
  animation: slideIn 0.6s ease forwards;
  animation-delay: 0.3s;
}

.ob-content-item:nth-child(odd)::before {
  left: 3px;
  top: 25px;
}

.ob-content-item:nth-child(even)::before {
  right: 0;
  top: 20px;
}

.ob-content-title2, .ob-content-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  color: #1e293b;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.4;
  position: relative;
  letter-spacing: 0.025em;
}

.ob-content-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  width: 160px;
  height: 3px;
  background: linear-gradient(90deg, #46be42, #9d44ef);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}

/* クラス付与時にアニメーション発火 */
.ob-content-item.ob-is-visible .ob-content-title::after {
  animation: expandWidth 0.8s ease forwards;
  animation-delay: 0.5s;
}

.ob-content-item:nth-child(odd) .ob-content-title::after {
  left: 0;
  transform-origin: left;
}

.ob-content-item:nth-child(even) .ob-content-title::after {
  right: 0;
  transform-origin: right;
}

/* テキストスタイルの改善 */
.ob-content-text {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #64748b;
  font-weight: 400;
  margin-top: 24px;
}

.ob-content-text p {
  color: #000;
  margin-bottom: 16px;
  opacity: 0;
  line-height: 1.8;
}

/* クラス付与時にアニメーション発火 */
.ob-content-item.ob-is-visible .ob-content-text p {
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.6s;
}

.ob-content-text p:last-child {
  margin-bottom: 0;
}

/* 強調テキストの改善 */
.ob-highlight {
  color: #000;
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.ob-highlight:hover {
  color: #c45ff6;
}

.ob-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(16, 185, 129, 0.4));
  border-radius: 1px;
  animation: highlightGlow 2s infinite alternate;
}

/* 特別なスタイル(最後の項目用)の改善 */
.ob-content-item.ob-special {
  text-align: center;
  padding: clamp(30px, 6vw, 40px);
  background: linear-gradient(135deg, #d4f5dc 0%, #fffffb 50%, #9ddbb3 100%);
  color: white;
  border-radius: 16px;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ob-content-item.ob-special:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.ob-content-item.ob-special::before {
  display: none;
}

.ob-content-item.ob-special .ob-content-title2 {
  color: #000;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ob-content-item.ob-special .ob-content-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.9;
}

.ob-content-item.ob-special::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  animation: sparkle 6s infinite linear;
  pointer-events: none;
}

/* アクセシビリティの改善 */
.ob-content-item:focus-within {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

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

@keyframes fadeIn {
  to {
      opacity: 1;
  }
}

@keyframes slideIn {
  from {
      transform: scaleY(0);
  }

  to {
      transform: scaleY(1);
  }
}

@keyframes expandWidth {
  to {
      transform: scaleX(1);
  }
}

@keyframes highlightGlow {
  0% {
      opacity: 0.6;
  }

  100% {
      opacity: 1;
  }
}

@keyframes sparkle {
  0% {
      transform: translateX(-100%) rotate(0deg);
  }

  100% {
      transform: translateX(100%) rotate(360deg);
  }
}

/* パフォーマンス最適化 */
.ob-content-item,
.ob-content-title::after,
.ob-content-item::before,
.ob-highlight::after {
  will-change: transform, opacity;
}

/* レスポンシブ対応の改善 */
@media (max-width: 768px) {
  .ob-about-component {
      padding: clamp(30px, 6vw, 40px) clamp(12px, 3vw, 16px);
  }

  .ob-content-item {
      margin-bottom: clamp(40px, 8vw, 60px);
      padding: 16px 0 16px 24px !important;
  }

  .ob-content-item::before {
      left: 0 !important;
      right: auto !important;
      width: 3px;
      height: 30px;
  }

  .ob-content-title::after {
      left: 0 !important;
      right: auto !important;
      transform: scaleX(0);
      transform-origin: left !important;
      width: 50px;
  }

  .ob-content-item.ob-special {
      padding: clamp(24px, 5vw, 30px) clamp(16px, 4vw, 20px) !important;
      margin-top: clamp(60px, 10vw, 80px);
  }

  .ob-content-item.ob-special .ob-content-title::after {
      left: 50% !important;
      transform: translateX(-50%) scaleX(0) !important;
      transform-origin: center !important;
  }
}

@media (max-width: 480px) {
  .ob-content-item:nth-child(even) {
    text-align: left;
  }

  .ob-content-text p {
    line-height: 1.4;
  }
  .ob-highlight::after {
    display: none;
  }
  .ob-highlight {
    line-height: 1.4;
    display: block;
    margin-bottom: 11px;
  }
  .ob-content-item {
      padding: 12px 0 12px 20px !important;
  }

  .ob-content-item::before {
      width: 2px;
      height: 25px;
  }
}

.ob-txt-normal {
  font-size: 1rem;
  font-weight: 400;
}

.ob-circle-img {
  width: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  margin: 0 auto;
}