/* Hero */
.community-hero {
  position: relative;
  padding: 80px 0;
  background: #f5f7ff;
  background-image: url("../img/community-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  min-height: 300px;
  color: #ffffff;
  overflow: hidden;
}

.community-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
}

.community-hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  z-index: 2;
}

.community-hero-title {
  font-family: "Abril Fatface", serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1px;
  color: #ffffff;
}

.community-hero-lead {
  font-family: "Maitree", serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 0px;
  color: #ffffff;
}

/* Shared section title */
.community-section-title {
  font-family: "Abril Fatface", serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 24px;
  text-align: center;
}

/* What We Provide */
.community-provide {
  padding: 64px 0;
}

.community-provide-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.community-provide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.community-provide-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.provide-image {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
}

.provide-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.provide-content {
  width: 100%;
}

.provide-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.provide-icon svg {
  width: 100%;
  height: 100%;
}

.provide-title {
  font-family: "Abril Fatface", serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: #222;
}

.provide-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: #444;
}

/* SNS Links */
.community-sns {
  padding: 64px 0;
  background: transparent;
}

.community-sns-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  text-align: center;
}

.community-sns-lead {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 48px;
  color: #444;
}

.community-sns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
  justify-items: center;
}

.sns-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0;
  text-decoration: none;
  color: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .sns-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .sns-link-instagram:hover {
    background-color: rgba(225, 48, 108, 0.1);
  }

  .sns-link-line:hover {
    background-color: rgba(0, 195, 0, 0.1);
  }

  .sns-link-linkedin:hover {
    background-color: rgba(0, 119, 181, 0.1);
  }

  .sns-link-facebook:hover {
    background-color: rgba(24, 119, 242, 0.1);
  }
}

.sns-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sns-icon svg {
  width: 100%;
  height: 100%;
}

.sns-name {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
}

/* Responsive */
@media (max-width: 768px) {
  .community-hero-title {
    font-family: "Abril Fatface", serif;
  }

  .community-hero-lead {
    font-family: "Maitree", serif;
  }

  .community-section-title {
    font-family: "Abril Fatface", serif;
  }

  .provide-title {
    font-family: "Abril Fatface", serif;
  }

  .community-hero {
    min-height: 250px;
    padding: 60px 0;
  }

  .community-provide,
  .community-sns {
    padding: 48px 0;
  }

  .community-provide-inner,
  .community-sns-inner {
    padding: 0 16px;
  }

  .community-provide-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .community-provide-card {
    padding: 24px 20px;
  }

  .community-sns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }

  .sns-link {
    padding: 24px 16px;
  }

  .sns-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .sns-name {
    font-size: 0.9rem;
  }
}

