/* collabo.html 専用スタイル（元<style>タグより移植） */
/* 必要に応じてここにスタイルを追加してください */

.business-partner-bg,
.collaborations-bg {
  background: linear-gradient(120deg, #e0e7ef 0%, #f5f7fa 100%);
  opacity: 0.5;
  z-index: 0;
}

/* blog.html の section-title スタイルを参考に調整 */
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #3b434c;
}
.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #ffc107; /* accent color */
  bottom: 0;
  left: calc(50% - 20px);
}
.section-title h3 {
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #6c757d;
}

/* FAQ セクションのスタイル調整 */
.card-title.decorative .title-decoration {
  border-bottom: 2px solid #ffc107; /* accent color */
  padding-bottom: 0.2em;
}

#title_text h3 {
  font-size: 1.5rem; /* より大きなフォントサイズ */
  color: #6c757d; /* 落ち着いた色 */
}

#business-partner .section-title h3 {
  font-size: 1.8rem; /* より大きなフォントサイズ */
}

.faq-card .card-header {
  background: #f8f9fa; /* light gray from bootstrap */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06); /* より薄いボーダー */
}

.faq-card {
  border: 1px solid rgba(0, 0, 0, 0.06); /* より薄いボーダー */
  margin-bottom: 1rem; /* カード間の余白 */
}

.faq-card .card-body {
  padding: 1.5rem; /* より大きなパッディング */
}
.faq-card .btn-link {
  color: #3b434c; /* Darker color for better contrast */
  font-weight: 600;
  text-decoration: none;
}
.faq-card .btn-link.collapsed {
  color: #343a40; /* Slightly darker for collapsed state */
}
.faq-card .card-body {
  background: #fff;
}
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* フォーム関連のカスタムスタイルはunified-forms.cssに任せるため、collabo.cssからは削除 */
/* ただし、ページ固有の要素は残す */

/* レスポンシブ対応 - 会社概要ページと同じレイアウト */
@media (max-width: 768px) {
  /* すべてのカラムを縦並びにする */
  #collaborations .container .row {
    display: flex !important;
    flex-direction: column !important;
  }
  
  #collaborations .col-lg-6,
  #collaborations .col-lg-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Bootstrapのグリッドシステムを上書き */
  .container .row .col-lg-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* カード内のテキストサイズ調整 */
  .card-title {
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
  }

  .card-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  /* セクションタイトルの調整 */
  .section-title h2 {
    font-size: 1.8rem !important;
  }

  .section-title h3 {
    font-size: 1.2rem !important;
  }

  /* ビジネスパートナーセクションのタイトル調整 */
  #business-partner .section-title h3 {
    font-size: 1.4rem !important;
  }
}

@media (max-width: 576px) {
  /* より小さな画面での調整 */
  .card-title {
    font-size: 1.2rem !important;
  }

  .card-text {
    font-size: 0.9rem !important;
  }

  .section-title h2 {
    font-size: 1.6rem !important;
  }

  .section-title h3 {
    font-size: 1.1rem !important;
  }

  #business-partner .section-title h3 {
    font-size: 1.3rem !important;
  }

  /* カードのパディング調整 */
  .card-body {
    padding: 1.25rem !important;
  }
}

.required-pill {
  background: #ffc107; /* accent color */
  color: #3b434c;
  border-radius: 10px;
  font-size: 0.8em;
  padding: 0 0.5em;
  margin-left: 0.5em;
}
.optional-pill {
  background: #e9ecef; /* light gray */
  color: #3b434c;
  border-radius: 10px;
  font-size: 0.8em;
  padding: 0 0.5em;
  margin-left: 0.5em;
}

/* FAQ Q/A アイコン */
.faq-card .card-header button.btn-link span strong {
  position: relative;
  padding-left: 25px; /* Q. の分のスペース */
}

.faq-card .card-header button.btn-link span strong::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: #007bff; /* 青色 */
}

.faq-card .card-body strong {
  position: relative;
  padding-left: 25px; /* A. の分のスペース */
}

.faq-card .card-body strong::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: #0056b3; /* 濃い青色 */
}

/* アコーディオンのスムースアニメーション */
.faq-card .collapse {
  transition: all 0.3s ease-in-out;
}

.faq-card .collapsing {
  transition: height 0.3s ease-in-out;
}

/* アコーディオンのアイコン回転アニメーション */
.faq-card .card-header button.btn-link i {
  transition: transform 0.3s ease-in-out;
}

.faq-card .card-header button.btn-link:not(.collapsed) i {
  transform: rotate(180deg);
}

/* カードボーダーのスムースな変化 */
.faq-card {
  transition: box-shadow 0.3s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* デフォルトの軽いシャドー */
}

.faq-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); /* ホバー時も軽めに調整 */
}

/* パートナーシップカードのスタイル統一 */
#collaborations .card.hover-card {
  transition: box-shadow 0.3s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* FAQカードと同じ軽いシャドー */
  border: 1px solid rgba(0, 0, 0, 0.06); /* FAQカードと同じ薄いボーダー */
  border-radius: 0.375rem; /* Bootstrap 5のデフォルト */
  margin: 0.5rem; /* カード周りの余白 */
  margin-bottom: 1rem; /* FAQカードと同じ下マージン */
}

#collaborations .card.hover-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); /* FAQカードと同じホバー効果 */
}

#collaborations .card.hover-card .card-body {
  background: #fff;
  padding: 2rem; /* より大きなパッディング */
  position: relative; /* 番号配置のため */
}

#collaborations .card.hover-card .card-title {
  color: #3b434c; /* FAQカードと同じ色調 */
  font-weight: 700; /* よりボールドに */
  margin-bottom: 0.75rem;
  padding-left: 1rem; /* 左ボーダーのためのパディング */
  border-left: 4px solid #007bff; /* 青色の左ボーダー */
  position: relative;
}

#collaborations .card.hover-card .card-text.fw-bold.text-primary {
  color: #343a40 !important; /* ダークグレーのアクセント */
  font-weight: 600;
}

/* フッターのテキストの色を他のページと統一 */
.text-info {
  color: #ccc !important; /* 他のページと同じ薄いグレーに統一 */
}

/* カード内のリストスタイル */
#collaborations .card.hover-card ul,
#collaborations .card.hover-card ol {
  padding-left: 1em; /* 左に1emのパディング */
  margin-bottom: 0.75rem;
}

#collaborations .card.hover-card li {
  margin-bottom: 0.25rem; /* リスト項目間の余白 */
}

/* カード番号のあしらい */
#collaborations .card.hover-card .card-body::before {
  content: attr(data-card-number);
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(0, 123, 255, 0.15); /* 少し濃い青色 */
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  font-family: "Arial", sans-serif;
}
