/* 企業理念ページ専用スタイル */

/* 社是「交」のセクション */
.philosophy-kanji-section {
  position: relative;
  padding: 8rem 0;
  background: #ffffff;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .philosophy-kanji-section {
    padding: 6rem 0 4rem;
  }
  
}

.philosophy-kanji {
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Noto Serif JP', serif;
  text-align: center;
  animation: pulse-gentle 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes pulse-gentle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* タイムライン形式のコンテンツ */
.timeline-section {
  position: relative;
  padding: 6rem 0;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* 中央のライン */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #14b8a6 0%, #3b82f6 100%);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 2rem;
  }
}

/* タイムラインアイテム */
.timeline-item {
  position: relative;
  margin-bottom: 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

.timeline-item:nth-child(even) .timeline-content {
  order: 2;
}

.timeline-item:nth-child(even) .timeline-image {
  order: 1;
}

@media (max-width: 768px) {
  .timeline-item:nth-child(even) .timeline-content {
    order: 1;
  }

  .timeline-item:nth-child(even) .timeline-image {
    order: 2;
  }
}

/* タイムラインドット */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 3rem;
  width: 3rem;
  height: 3rem;
  background: white;
  border: 4px solid #14b8a6;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

@media (max-width: 768px) {
  .timeline-dot {
    left: 2rem;
  }
}

.timeline-dot-inner {
  width: 1rem;
  height: 1rem;
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* コンテンツカード */
.timeline-content {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media screen and (max-width: 768px) {
  .timeline-content {
    padding: 2rem 1rem;
  }
  
}

.timeline-content:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transform: translateY(-0.5rem);
}

.timeline-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  color: white;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.timeline-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4b5563;
}

/* タイムラインイメージ */
.timeline-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  height: 400px;
}

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

@media screen and (max-width: 768px) {
  .timeline-image {
    display: none;
  }
  
}

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

/* 交わりを表現するイラスト */
.intersection-visual {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.circle-element {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.6;
  transition: all 0.4s ease;
}

.circle-element:nth-child(1) {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  top: 0;
  left: 0;
  animation: float 6s ease-in-out infinite;
}

.circle-element:nth-child(2) {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  bottom: 0;
  right: 0;
  animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* CTAセクションの改善 */
.cta-section {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* 強調テキスト */
.highlight-text {
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* アイコンボックス */
.icon-box {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

/* 装飾的な要素 */
.decorative-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
}

.decorative-dots::before,
.decorative-dots::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #14b8a6;
  border-radius: 50%;
}

.decorative-dots::before {
  top: 20%;
  left: 10%;
}

.decorative-dots::after {
  bottom: 30%;
  right: 15%;
}
