/* ==========================================
  Advanced Company Page Styles
========================================== */

:root {
  /* メインカラーパレット */
  --gradient-primary: linear-gradient(135deg, #0a3d61 0%, #2980b9 100%);
  --gradient-primary-soft: linear-gradient(135deg, rgba(10, 61, 97, 0.8) 0%, rgba(41, 128, 185, 0.8) 100%);
  --gradient-accent: linear-gradient(135deg, #e74c3c 0%, #ff7675 100%);
  --gradient-dark: linear-gradient(135deg, #1e3c59 0%, #34495e 100%);
  --gradient-light: linear-gradient(135deg, #f5f7fa 0%, #f1f6fc 100%);
  --gradient-neutral: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
  --gradient-success: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  --gradient-warning: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  
  --color-primary: #0a3d61;
  --color-primary-light: #3498db;
  --color-primary-dark: #053052;
  --color-accent: #e67e22;
  --color-accent-light: #ff7675;
  --color-secondary: #1e3c59;
  --color-text-dark: #2c3e50;
  --color-text-medium: #34495e;
  --color-text-light: #7f8c8d;
  --color-background: #f9fafb;
  --color-background-alt: #ecf0f1;
  
  /* シャドウスタイル */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.07);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-focus: 0 0 0 3px rgba(41, 128, 185, 0.3);
  
  /* 境界線の丸み */
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
  
  /* トランジション速度 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ナビゲーション修正：事業紹介メニューを通常色に */
.header__nav-item a:not(.current):not(.btn-contact) {
  color: var(--color-text-dark) !important;
  font-weight: 500 !important;
}

.header__nav-item a:not(.current):not(.btn-contact):hover {
  color: var(--color-primary) !important;
}

/* ヒーローセクション */
.hero-company {
  position: relative;
  height: 70vh;
  min-height: 500px;
  color: #fff;
  overflow: hidden;
  margin-top: 80px;
}

.hero-company__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-company__bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transform: scale(1.05);
  transition: transform 0.8s ease;
}

.hero-company:hover .hero-company__bg-img {
  transform: scale(1);
}

.hero-company__bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(75deg, 
    rgba(10, 61, 97, 0.95) 0%, 
    rgba(41, 128, 185, 0.85) 50%, 
    rgba(41, 128, 185, 0.75) 100%);
  z-index: 1;
  overflow: hidden;
}

.hero-company__bg-overlay::before,
.hero-company__bg-overlay::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  animation: float 15s infinite alternate ease-in-out;
}

.hero-company__bg-overlay::before {
  top: -100px;
  left: 10%;
  animation-delay: 0s;
}

.hero-company__bg-overlay::after {
  bottom: -150px;
  right: 15%;
  width: 400px;
  height: 400px;
  animation-delay: -7s;
}

.hero-company__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-company__subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-company__title {
  font-size: 7rem;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-company__description {
  font-size: 1.4rem;
  line-height: 1.6;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-company__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1s;
}

.hero-company__scroll-text {
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-company__scroll-line {
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.7);
  margin: 0 auto;
  animation: scrollIndicator 2s infinite;
}

/* セクション基本スタイル */
.section-company {
  padding: 6rem 0;
  position: relative;
}

.section-company--dark {
  background: var(--gradient-dark);
  color: #fff;
}

.section-company--light {
  background: var(--gradient-light);
}

.section-company__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-company__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-company__title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-company--dark .section-company__title {
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-company__subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

.section-company--dark .section-company__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* 数値セクション */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.stat-card:hover::before {
  left: 100%;
}

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

.stat-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.stat-card__number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
  display: block;
}

.stat-card__label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* セクション説明文 */
.section-company__description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-company--dark .section-company__description {
  color: rgba(255, 255, 255, 0.8);
}

/* 経営陣セクション */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.leader-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

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

.leader-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 4px solid var(--color-primary-light);
  transition: all var(--transition);
}

.leader-card:hover .leader-card__photo {
  transform: scale(1.05);
}

.leader-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.leader-card__position {
  font-size: 1rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.leader-card__bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-medium);
}

/* 組織図セクション */
.org-chart {
  margin-top: 3rem;
}

.org-level {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.org-level::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2rem;
  background: var(--color-primary-light);
}

.org-level:last-child::after {
  display: none;
}

.org-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  margin: 0 1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}

.org-item::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 1rem;
  background: var(--color-primary-light);
}

.org-level:first-child .org-item::before {
  display: none;
}

.org-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.org-item__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: center;
}

.org-item__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 0.5rem;
}

/* 沿革タイムライン */
.timeline-container {
  position: relative;
  margin-top: 3rem;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-light));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
}

.timeline-item.animate {
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: calc(50% + 3rem);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: calc(50% + 3rem);
  text-align: right;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  z-index: 2;
}

.timeline-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: all var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.timeline-date {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.8rem;
}

.timeline-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-medium);
}

/* 許認可セクション */
.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.certification-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.certification-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.certification-item__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--gradient-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.certification-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.certification-item__number {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

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

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

@keyframes scrollIndicator {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

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

/* フェードイン効果 */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

.fade-in-stagger .stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.fade-in-stagger.animate .stagger-item:nth-child(1) { animation-delay: 0.1s; }
.fade-in-stagger.animate .stagger-item:nth-child(2) { animation-delay: 0.2s; }
.fade-in-stagger.animate .stagger-item:nth-child(3) { animation-delay: 0.3s; }
.fade-in-stagger.animate .stagger-item:nth-child(4) { animation-delay: 0.4s; }
.fade-in-stagger.animate .stagger-item:nth-child(5) { animation-delay: 0.5s; }
.fade-in-stagger.animate .stagger-item:nth-child(6) { animation-delay: 0.6s; }

.fade-in-stagger.animate .stagger-item {
  animation: fadeInUp 0.6s ease forwards;
}

/* 会社情報グリッド */
.company-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

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

.info-card__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.info-card__content {
  flex: 1;
}

.info-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.8rem;
}

.info-card__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-medium);
}

.info-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.info-card__links a {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}

.info-card__links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* アクセス情報 */
.access-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.access-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  color: #fff;
  transition: all var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.access-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.15);
}

.access-card__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.access-card__content {
  flex: 1;
}

.access-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.access-card__text {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-company__title {
    font-size: 4rem;
  }
  
  .section-company__title {
    font-size: 2.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 3rem;
    margin-right: 0;
    text-align: left;
  }
  
  .timeline-line {
    left: 1rem;
  }
  
  .timeline-marker {
    left: 1rem;
  }
  
  .certification-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-company__title {
    font-size: 3rem;
  }
  
  .section-company {
    padding: 4rem 0;
  }
  
  .section-company__inner {
    padding: 0 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 2rem 1.5rem;
  }
  
  .leader-card {
    padding: 1.5rem;
  }
}

/* 新しいリーダーカードスタイル */
.leader-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.leader-card__header {
  position: relative;
  text-align: center;
  padding: 2rem 2rem 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.leader-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.leader-card__content {
  padding: 2rem;
  flex: 1;
}

.leader-card__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.credential {
  background: var(--gradient-neutral);
  color: var(--color-text-dark);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}

.leader-card__message {
  background: rgba(10, 61, 97, 0.05);
  border-left: 4px solid var(--color-primary);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.leader-card__message h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.leader-card__message p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-medium);
  font-style: italic;
}

.leader-card__career {
  margin-top: 1.5rem;
}

.leader-card__career h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.leader-card__career ul {
  list-style: none;
  padding: 0;
}

.leader-card__career li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-medium);
}

.leader-card__career li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* 役職別カラーリング */
.leader-card--ceo .leader-card__header {
  background: linear-gradient(135deg, #e74c3c 0%, #ff7675 100%);
}

.leader-card--cto .leader-card__header {
  background: linear-gradient(135deg, #9b59b6 0%, #e17055 100%);
}

.leader-card--coo .leader-card__header {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}


/* 事業部門別組織図 */
.org-chart--business {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.org-level--divisions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.org-level--divisions::after {
  display: none;
}

.org-level--details {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.org-group {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-top: 2rem;
}

.org-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2rem;
  background: var(--color-primary-light);
}

/* 事業別カラーリング */
.org-item--education {
  border-top: 4px solid #3498db;
}

.org-item--welfare {
  border-top: 4px solid #e74c3c;
}

.org-item--system {
  border-top: 4px solid #27ae60;
}

/* アイコン付き組織項目 */
.org-item__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.org-item--education .org-item__icon {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
}

.org-item--welfare .org-item__icon {
  background: linear-gradient(135deg, #e74c3c 0%, #ff7675 100%);
}

.org-item--system .org-item__icon {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.org-item__description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 0.5rem;
}

/* サブ組織項目 */
.org-item--sub {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  min-width: 150px;
}

.org-item--sub .org-item__icon {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  background: var(--gradient-neutral);
  color: var(--color-text-dark);
}

.org-item--sub::before {
  display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .org-level--divisions {
    flex-direction: column;
    align-items: center;
  }
  
  .org-level--details {
    flex-direction: column;
    gap: 2rem;
  }
  
  .org-group {
    flex-direction: column;
    align-items: center;
  }
  
  .org-group::before {
    height: 1rem;
  }
}

/* 新しいモダン組織図スタイル */
.org-modern {
  margin-top: 3rem;
}

.org-divisions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.org-division {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.org-division:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.org-division::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  z-index: 2;
}

/* 事業部ヘッダー */
.org-division__header {
  padding: 2rem;
  text-align: center;
  position: relative;
  color: white;
  background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
}

.org-division--education .org-division__header {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
}

.org-division--welfare .org-division__header {
  background: linear-gradient(135deg, #e74c3c 0%, #ff7675 100%);
}

.org-division--system .org-division__header {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.org-division__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.org-division__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.org-division__subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  letter-spacing: 1px;
  font-weight: 300;
}

/* 事業部コンテンツ */
.org-division__content {
  padding: 2rem;
}

.org-division__description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-medium);
  margin-bottom: 1.5rem;
  text-align: center;
}

.org-division__services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.org-service {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.org-service:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(5px);
}

.org-service__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.org-division--education .org-service__icon {
  background: linear-gradient(135deg, #3498db, #5dade2);
}

.org-division--welfare .org-service__icon {
  background: linear-gradient(135deg, #e74c3c, #ff7675);
}

.org-division--system .org-service__icon {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.org-service__info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.3rem;
}

.org-service__info p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* 事業部フッター（統計） */
.org-division__footer {
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
}

.org-stat {
  text-align: center;
}

.org-stat__number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.org-division--education .org-stat__number {
  color: #3498db;
}

.org-division--welfare .org-stat__number {
  color: #e74c3c;
}

.org-division--system .org-stat__number {
  color: #27ae60;
}

.org-stat__label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .org-divisions {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .org-division__header {
    padding: 1.5rem;
  }
  
  .org-division__content {
    padding: 1.5rem;
  }
  
  .org-division__icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .org-service {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .org-service:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 480px) {
  .org-division__footer {
    padding: 1rem;
  }
  
  .org-stat__number {
    font-size: 1.5rem;
  }
  
  .org-division__title {
    font-size: 1.3rem;
  }
}

/* 会社基本情報セクションの中央配置 */
.service-cards {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.service-card__info-grid {
  max-width: 800px;
  margin: 2rem auto 0;
}

/* 会社基本情報カードの中央寄せ調整 */
.service-card__header {
  text-align: center;
  margin-bottom: 3rem;
}

.service-card__content {
  display: flex;
  justify-content: center;
}

/* 会社概要ページの文字サイズ調整 */

/* 会社基本情報セクションの文字サイズ拡大 */
.service-card__tag {
  font-size: 1.4rem; /* 1.2rem から拡大 */
}

.service-card__title {
  font-size: 5rem; /* 4.5rem から拡大 */
}

.service-card__subtitle {
  font-size: 2.5rem; /* 2.2rem から拡大 */
}

.service-card__info-text h4 {
  font-size: 1rem; /* 0.9rem から拡大 */
}

.service-card__info-text p {
  font-size: 1.3rem; /* 1.1rem から拡大 */
}

/* 事業体制セクションの文字サイズ拡大 */
.section-company__title {
  font-size: 4.5rem; /* 4rem から拡大 */
}

.section-company__subtitle {
  font-size: 1.4rem; /* 1.2rem から拡大 */
}

.section-company__description {
  font-size: 1.4rem; /* 1.2rem から拡大 */
}

.org-division__title {
  font-size: 1.7rem; /* 1.5rem から拡大 */
}

.org-division__subtitle {
  font-size: 1rem; /* 0.9rem から拡大 */
}

.org-division__description {
  font-size: 1.1rem; /* 1rem から拡大 */
}

.org-service__info h4 {
  font-size: 1.1rem; /* 1rem から拡大 */
}

.org-service__info p {
  font-size: 0.95rem; /* 0.85rem から拡大 */
}

.org-stat__number {
  font-size: 2rem; /* 1.8rem から拡大 */
}

.org-stat__label {
  font-size: 0.9rem; /* 0.8rem から拡大 */
}

/* 沿革セクションの文字サイズ拡大 */
.timeline-date {
  font-size: 1rem; /* 0.9rem から拡大 */
}

.timeline-title {
  font-size: 1.5rem; /* 1.3rem から拡大 */
}

.timeline-description {
  font-size: 1.2rem; /* 1rem から拡大 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .service-card__tag {
    font-size: 1.2rem;
  }
  
  .service-card__title {
    font-size: 3.5rem;
  }
  
  .service-card__subtitle {
    font-size: 2rem;
  }
  
  .service-card__info-text h4 {
    font-size: 0.95rem;
  }
  
  .service-card__info-text p {
    font-size: 1.1rem;
  }
  
  .section-company__title {
    font-size: 3rem;
  }
  
  .section-company__subtitle {
    font-size: 1.2rem;
  }
  
  .section-company__description {
    font-size: 1.2rem;
  }
  
  .org-division__title {
    font-size: 1.4rem;
  }
  
  .org-division__subtitle {
    font-size: 0.9rem;
  }
  
  .org-division__description {
    font-size: 1rem;
  }
  
  .org-service__info h4 {
    font-size: 1rem;
  }
  
  .org-service__info p {
    font-size: 0.9rem;
  }
  
  .org-stat__number {
    font-size: 1.7rem;
  }
  
  .org-stat__label {
    font-size: 0.85rem;
  }
  
  .timeline-date {
    font-size: 0.95rem;
  }
  
  .timeline-title {
    font-size: 1.3rem;
  }
  
  .timeline-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .service-card__title {
    font-size: 3rem;
  }
  
  .service-card__subtitle {
    font-size: 1.8rem;
  }
  
  .section-company__title {
    font-size: 2.5rem;
  }
  
  .timeline-title {
    font-size: 1.2rem;
  }
  
  .timeline-description {
    font-size: 1rem;
  }
}
