/* ============================================
   教育団体・法人の方へ ページ専用CSS
   ============================================ */

/* Page Hero */
.page-hero {
  background: transparent;
  color: #1f2328;
}

/* page-title is provided in common.css for consistent heading */

/* Section Titles */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2328;
}

/* Mission Section */
.section-mission {
  background: #fff;
}

.mission-image {
  max-width: 800px;
}

/* Activities Section */
.activity-item {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.activity-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2328;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.member-benefits-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 24px rgba(31, 35, 40, 0.08);
}

.member-benefits-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2328;
  margin-bottom: 16px;
}

.member-benefit-block + .member-benefit-block {
  margin-top: 1.75rem;
}

.member-benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2328;
  margin-bottom: 0.75rem;
}

.member-benefit-list {
  padding-left: 1.5rem;
  margin-bottom: 0;
  color: #333;
  line-height: 1.8;
}

.member-benefit-list li + li {
  margin-top: 0.5rem;
}

.section-member-perks,
.section-links {
  margin-top: 3rem;
}

.member-perks-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 12px 24px rgba(31, 35, 40, 0.08);
}

.member-perks-table-wrap {
  overflow-x: auto;
}

.member-perks-table {
  min-width: 760px;
  border-collapse: collapse;
  vertical-align: middle;
}

.member-perks-table th,
.member-perks-table td {
  border: 1px solid rgba(31, 35, 40, 0.18);
  padding: 0.875rem 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: #1f2328;
  background: #fff;
}

.member-perks-table thead th {
  font-weight: 700;
}

.member-perks-table thead th:first-child,
.member-perks-table tbody th {
  text-align: left;
}

.member-perks-table thead th:first-child {
  min-width: 270px;
}

.member-perks-table tbody th {
  width: 46%;
  font-weight: 500;
}

.member-perks-table .highlight-col {
  background: #e8f4fb;
}

.perk-dot {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  color: #1f2328;
}

.activity-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #e8a67a 0%, #6db3d9 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
}

/* Category Cards */
.category-card {
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.category-card h5 {
  color: #d08a5a;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.category-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.category-card img {
  width: 100%;
  margin-top: auto;
}

/* Statistics Section */
.section-stats {
  background: #fff;
}

.stats-image {
  max-width: 700px;
}

.institutions-menu {
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 96px;
}

.institutions-menu .list-group-item {
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #1b1b1b;
  background: transparent;
  text-decoration: none;
}

.institutions-menu .list-group-item:last-child {
  border-bottom: 0;
}

.institutions-menu .list-group-item.active {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #1b1b1b;
  font-weight: 700;
}

.side-cta-menu {
  margin-top: 1rem;
}

.institutions-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.institutions-sidebar .institutions-menu {
  position: static;
  top: auto;
}

.institutions-menu .menu-cta-link {
  font-weight: 700;
  color: #d08a5a;
}

@media (max-width: 991.98px) {
  .institutions-sidebar {
    position: static;
    top: auto;
  }
}

/* Links Section */
.link-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(31, 35, 40, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(208, 138, 90, 0.45);
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.1);
  color: inherit;
}

.link-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d08a5a;
  margin-bottom: 0.5rem;
}

.link-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* Case Studies Cards */
.case-study-card {
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(31, 35, 40, 0.08);
  overflow: hidden;
}

.case-study-card .card-body {
  display: flex;
  flex-direction: column;
}

.case-study-card .case-study-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.case-study-card .card-title a {
  color: #1f2328;
  text-decoration: none;
}

.case-study-card .card-title a:hover {
  text-decoration: underline;
}

.case-study-card .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.case-study-card .card-text {
  color: #555;
  line-height: 1.6;
}

.case-study-placeholder {
  background: #ffffff;
  object-fit: contain;
  padding: 32px;
}

.section-links {
  background: transparent;
  padding-bottom: 4rem;
}

/* Case Studies Section */
.section-cases {
  background: transparent;
  padding-bottom: 4rem;
}

.case-studies-intro {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  color: #1f2328;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.8;
  text-align: left;
}

.case-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.case-card-header {
  background: linear-gradient(135deg, #e8a67a 0%, #d08a5a 100%);
  padding: 1.25rem 1.5rem;
  color: #fff;
}

.case-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.case-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.case-card-body {
  padding: 1.5rem;
}

.case-card-body p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.case-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.case-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6db3d9;
  font-weight: 700;
}

.case-points li:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (min-width: 768px) {
  .w-md-50 {
    width: 50% !important;
  }
}

@media (max-width: 767.98px) {
  .page-hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .activity-item {
    padding: 1.5rem;
  }

  .member-perks-card {
    padding: 1rem;
  }
}
