/**
 * improvements.css - アクセシビリティ・表示改善
 * 共同代表写真、レスポンシブ強化
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   AOS アニメーション 調整
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   代表者セクション レイアウト 全面書き換え
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* PC: 左写真 右テキストの横並び */
.ceo-section {
  display: flex !important;
  flex-direction: row !important;
  gap: 3.5rem;
  align-items: flex-start;
  margin-bottom: 5rem;
}

/* 2人目: 左テキスト 右写真 */
@media (min-width: 769px) {
  .ceo-section--alt {
    flex-direction: row-reverse !important;
  }
}

/* 写真エリア: PC で 280px 固定幅 */
.ceo-image {
  flex: 0 0 280px !important;
  width: 280px !important;
  max-width: 280px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(244, 156, 161, 0.22), 0 2px 8px rgba(0,0,0,0.08) !important;
  aspect-ratio: 1 / 1 !important;
}

/* 写真自体: 正円に収める */
.ceo-image img,
.ceo-photo {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 50% !important;
  display: block !important;
}

/* プレースホルダー */
.ceo-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F49CA1;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* テキストエリア */
.ceo-content {
  flex: 1 !important;
  min-width: 0;
  padding-top: 1.5rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   タブレット (481px〜768px)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (min-width: 481px) and (max-width: 768px) {
  .ceo-section,
  .ceo-section--alt {
    flex-direction: column !important;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .ceo-image {
    flex: 0 0 220px !important;
    width: 220px !important;
    max-width: 220px !important;
  }

  .ceo-content {
    width: 100%;
    text-align: center;
    padding-top: 0;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   スマホ (〜480px)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {
  .ceo-section,
  .ceo-section--alt {
    flex-direction: column !important;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }

  .ceo-image {
    flex: 0 0 180px !important;
    width: 180px !important;
    max-width: 180px !important;
  }

  .ceo-content {
    width: 100%;
    text-align: center;
    padding-top: 0;
  }

  .ceo-content__name {
    font-size: 1.1rem;
  }

  .ceo-content__role {
    font-size: 0.8rem;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ベース アクセシビリティ
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:focus-visible {
  outline: 3px solid #F49CA1;
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: #F49CA1;
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus { top: 0; }

img { max-width: 100%; height: auto; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   レスポンシブ 強化
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section-title { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* 印刷 */
@media print {
  .header, .nav, .back-to-top, .cta { display: none !important; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero__video-wrap { display: none; }
}