/* ===============================================================
   index.html only
=============================================================== */

/* 固定ヘッダー分の余白（このページ用） */
.index-page-body {
  padding-top: 76px;
}

/* =========================
   インタラクティブ・サービスセクション
========================= */
.interactive-service-section {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.service-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 120px;
}
.service-list-item {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background-color 0.4s, color 0.4s;
  border: 1px solid transparent;
}
.service-list-item.active {
  background-color: var(--dark-bg-light);
  color: var(--white);
  border-color: var(--primary-color);
}
.service-list-item h3 { margin: 0 0 5px 0; font-size: 20px; }
.service-list-item p { margin: 0; font-size: 14px; color: var(--text-color-light); }
.service-list-item.active p { color: var(--text-color-dark); }

.service-display { flex: 1.5; }
.service-display-item { display: none; animation: fade-in 0.6s; }
.service-display-item.active { display: block; }
.service-display-item img { width: 100%; border-radius: 16px; margin-bottom: 20px; }
.service-display-item h3 { font-size: 28px; color: var(--white); margin: 0 0 10px 0; }
.service-display-item p { font-size: 16px; line-height: 1.8; margin: 0; }

.btn-link {
  display: inline-block;
  margin: 10px 10px 10px 0;
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
}
.btn-link:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

/* =========================
   ビデオセクション
========================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.video-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
  text-decoration: none;
  transition: transform 0.5s, box-shadow 0.5s;
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.video-thumbnail { overflow: hidden; position: relative; }
.video-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-speed);
}
.video-card:hover .video-thumbnail img { transform: scale(1.05); }
.video-card p {
  padding: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
  font-size: 17px;
}

/* =========================
   ロゴ横スクロール（病院ロゴ）
========================= */
.logo-marquee-section {
  background-color: #eef9ff;
  padding: 20px 0 50px;
}

.logo-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 6px 0;
  animation: logo-marquee-scroll 40s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.logo-marquee-wrapper.is-visible .logo-marquee-track {
  animation-play-state: running;
}

.logo-marquee-wrapper:hover .logo-marquee-track {
  animation-play-state: paused;
}

.logo-item {
  flex: 0 0 auto;
  min-width: 180px;
  height: 60px;
  padding: 0 20px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5f5;
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
}

@keyframes logo-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .logo-marquee-section { padding: 30px 0 50px; }
  .logo-marquee-wrapper { gap: 12px; }
  .logo-marquee-track { gap: 20px; }
  .logo-item {
    min-width: 140px;
    height: 52px;
    padding: 0 14px;
    font-size: 12px;
  }
}

/* =========================
   PDFレクチャー（カード）
========================= */
.pdf-section {
  padding: 5rem 1.5rem 4.5rem;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.10), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56,189,248,0.08), transparent 55%),
    var(--secondary-color);
}

.pdf-section .section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.pdf-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pdf-section .section-title {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 750;
  color: #111827;
  margin-bottom: 0.75rem;
}

.pdf-section .section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, var(--primary-color), #22c55e);
}

.pdf-section .section-lead {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.8;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.pdf-card {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.6rem 1.7rem 1.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pdf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(34,197,94,0.12));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.25s ease;
}

.pdf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
  border-color: rgba(59,130,246,0.7);
}

.pdf-card:hover::before {
  opacity: 1;
}

.pdf-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(59,130,246,0.08);
  color: var(--primary-color-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.pdf-title {
  font-size: 1.05rem;
  font-weight: 650;
  color: #111827;
  margin-bottom: 0.4rem;
}

.pdf-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.8rem;
}

.pdf-desc {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.pdf-card .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(59,130,246,0.35);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pdf-card .btn-primary:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37,99,235,0.45);
}
.pdf-card .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37,99,235,0.35);
}

@media (max-width: 640px) {
  .pdf-section { padding: 3.5rem 1.25rem 3.25rem; }
  .pdf-card { padding: 1.4rem 1.3rem 1.5rem; }
}

/* =========================
   ミニ参加者の声（index）
========================= */
.mini-voices-section {
  padding: 3.5rem 0 3rem;
  background: #f7fcf7;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.mini-voice-meta-block { margin-bottom: 0.5rem; }

.mini-voice-meta {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-color-light);
}

.mini-voice-label {
  font-weight: 600;
  color: var(--text-color);
  margin-right: 0.25rem;
}

.mini-voices-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.mini-voices-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.mini-voices-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 0.5rem;
}

.mini-voices-title {
  font-size: 1.8rem;
  margin: 0 0 0.9rem;
  color: #111827;
}

.mini-voices-lead {
  margin: 0;
  font-size: 0.98rem;
  color: #4b5563;
}

.mini-voices-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.mini-voice-card {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.3rem 1.2rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.mini-voice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 3px solid #3b82f6;
  opacity: 0.25;
  pointer-events: none;
}

.mini-voice-card::after {
  content: "“";
  position: absolute;
  top: 0.4rem;
  right: 0.7rem;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(148, 163, 184, 0.35);
  font-family: "Georgia", "Times New Roman", serif;
}

.mini-voice-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #111827;
  margin: 0;
}

.mini-voices-footer {
  text-align: center;
  margin-top: 0.4rem;
}

.mini-voices-link {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid #3b82f6;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
  background: #eef2ff;
  transition: background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, transform 0.1s ease;
}

.mini-voices-link:hover {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .mini-voices-section { padding: 4rem 0 3.2rem; }
  .mini-voices-title { font-size: 2rem; }
  .mini-voices-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
  .mini-voice-card { padding: 1.3rem 1.4rem 1.25rem; }
}

@media (min-width: 1200px) {
  .mini-voices-section .container { max-width: 1160px; }
}

/* =========================
   学びの記事（index用：衝突防止のため index にスコープ）
========================= */
.index-page-body .articles-section {
  background: var(--light-gray);
}

.index-page-body .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.index-page-body .article-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.index-page-body .article-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color-dark);
  background: rgba(59, 130, 246, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

.index-page-body .article-title a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

.index-page-body .article-title a:hover {
  color: var(--primary-color-dark);
  text-decoration: underline;
}

.index-page-body .article-meta {
  font-size: 0.8rem;
  color: var(--text-color-light);
}

.index-page-body .article-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-top: 4px;
}

.index-page-body .articles-footer {
  margin-top: 20px;
  text-align: right;
}

.index-page-body .articles-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--primary-color-dark);
  font-weight: 600;
}

.index-page-body .articles-link::after {
  content: " →";
}

@media (max-width: 900px) {
  .index-page-body .articles-grid { grid-template-columns: 1fr; }
}

/* =========================
   コラボ企業ロゴ（index）
========================= */
.collab-partners-section {
  background-color: #def0fa;
  padding: 28px 0 70px;
}

.collab-partners-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.collab-partner-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  padding: 16px 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.collab-partner-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
}

.collab-partner-inner img {
  max-height: 44px;
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transform: translateZ(0);
  transition: transform 0.25s ease;
  filter: drop-shadow(0 1px 0 rgba(15, 23, 42, 0.06));
}

.collab-partner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.collab-partner-card:hover img {
  transform: scale(1.03);
}

.collab-partner-card:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 4px;
}

.collab-partners-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-color-light);
}

@media (max-width: 980px) {
  .collab-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .collab-partners-section { padding: 28px 0 62px; }
  .collab-partner-inner { height: 60px; }
  .collab-partner-inner img { max-width: 180px; max-height: 40px; }
}

/* =========================
   index：レスポンシブ調整
========================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .interactive-service-section,
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content { padding-right: 0; }
  .service-list { position: static; width: 100%; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .interactive-service-section { flex-direction: column; }
  .service-list { position: static; width: 100%; }
  .video-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-list-item h3 { white-space: nowrap; }
}
