/* ==========================================================================
   Program Section - プログラム内容・1日の流れ専用スタイル
   ========================================================================== */

/* プログラムセクション全体 */
#program {
  background: var(--white);
  padding: var(--section-padding) 0 !important;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--scroll-offset) !important;
}

/* プログラムグリッド - モバイルファーストアプローチ */
.program-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* プログラムカード */
.program-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--primary-blue);
  transition: all 0.3s ease;
  position: relative;
}

.program-card.advanced {
  border-color: var(--primary-blue);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* プログラムヘッダー */
.program-header {
  padding: 25px 20px;
  text-align: center !important;
  color: white;
  background: var(--primary-blue);
  position: relative;
  overflow: hidden;
}

.program-card.advanced .program-header {
  background: var(--primary-blue);
}

.program-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 4s infinite;
}

.program-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 800;
  position: relative;
  z-index: 2;
  color: white !important;
  text-align: center !important;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.program-header p {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
  margin: 5px 0;
  position: relative;
  z-index: 2;
  color: white !important;
  text-align: center !important;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

/* プログラム本文 */
.program-body {
  padding: 30px 20px;
}

/* プログラムフォーカス */
.program-focus {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 18px;
  background: rgba(74, 144, 226, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(74, 144, 226, 0.15);
}

.focus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--primary-blue);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.25);
  flex-shrink: 0;
}

.focus-icon i {
  font-size: 18px;
}

.program-focus h4 {
  color: var(--navy-dark);
  font-size: 18px;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  /* シンプルな改行制御 */
  word-break: auto-phrase;
}

/* プログラムコンテンツ */
.program-content {
  /* スタイルは下で定義 */
}

.program-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 20px;
  text-align: center;
  padding: 15px;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
  /* シンプルな改行制御 */
  word-break: auto-phrase;
}

.content-section {
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.content-section:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.content-section p {
  margin: 0;
  line-height: 1.7;
  color: var(--gray-medium);
  font-size: 15px;
  font-weight: 500;
  /* シンプルな改行制御 */
  word-break: auto-phrase;
}

.content-section strong {
  color: var(--navy-dark);
  font-weight: 700;
}





/* タブレット以上 (768px以上) */
@media (min-width: 768px) {
  #program {
    padding: var(--section-padding) 0 !important;
    scroll-margin-top: var(--scroll-offset) !important;
  }

  .program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
  }

  .program-header {
    padding: 30px;
    text-align: center !important;
  }

  .program-header h3 {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center !important;
    word-break: auto-phrase;
    overflow-wrap: break-word;
  }

  .program-header p {
    font-size: 18px;
    text-align: center !important;
    word-break: auto-phrase;
    overflow-wrap: break-word;
  }

  .program-body {
    padding: 40px;
  }

  .program-focus {
    padding: 22px;
    gap: 18px;
  }

  .focus-icon {
    width: 50px;
    height: 50px;
  }

  .focus-icon i {
    font-size: 20px;
  }

  .program-focus h4 {
    font-size: 20px;
  }

  .program-subtitle {
    font-size: 17px;
    padding: 18px;
    margin-bottom: 25px;
  }

  .content-section {
    padding: 22px;
    margin-bottom: 22px;
  }

  .content-section p {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* デスクトップ (1200px以上) */
@media (min-width: 1200px) {
  .program-grid {
    gap: 50px;
  }

  .program-header {
    padding: 40px;
    text-align: center !important;
  }

  .program-header h3 {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center !important;
    word-break: auto-phrase;
    overflow-wrap: break-word;
  }

  .program-header p {
    font-size: 20px;
    text-align: center !important;
    word-break: auto-phrase;
    overflow-wrap: break-word;
  }

  .program-body {
    padding: 50px;
  }

  .program-focus {
    padding: 25px;
    gap: 20px;
  }

  .focus-icon {
    width: 60px;
    height: 60px;
  }

  .focus-icon i {
    font-size: 24px;
  }

  .program-focus h4 {
    font-size: 22px;
  }

  .program-subtitle {
    font-size: 18px;
    padding: 20px;
    margin-bottom: 25px;
  }

  .content-section {
    padding: 25px;
    margin-bottom: 25px;
  }

  .content-section p {
    font-size: 16px;
    line-height: 1.8;
  }
}

/* アニメーション */
@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .program-card,
  .common-program-card,
  .program-header::before {
    transition: none;
    animation: none;
  }
}

/* 高コントラスト対応 */
@media (prefers-contrast: high) {
  .program-card,
  .common-program-card {
    border-width: 4px;
  }
  
  .schedule-item {
    border-bottom-width: 3px;
  }
} 