/* Department Section Styles - Shared */
.p-department {
  padding: 40px 0;
}

.p-department__inner {
  display: flex;
  gap: 80px;
  max-width: 1120px;
  margin: 0 auto;
}
.p-department__inner--reverse {
  flex-direction: row-reverse;
}

/* Layout variations */

/* Visual Section */
.p-department__visual {
  flex: 0 0 480px;
}

.p-department__image-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-department__main-image {
  background-color: #dfdfdf;
  border-radius: var(--border-radius-default);
  overflow: hidden;
  position: relative;
}

.p-department--development .p-department__main-image {
}

.p-department__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-department__overlay-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.p-department__overlay-card:hover {
  transform: translateY(-5px);
}
.p-department__overlay-card img {
  width: 100%;
}


/* Content Section */
.p-department__content {
  flex: 0 0 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-department__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.p-department__logo {
  width: 69px;
  height: 50px;
}

.p-department__logo img {
  width: 100%;
  height: 100%;
}

.p-department__title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.p-department--nursery .p-department__title {
  color: var(--color-nursery);
}

.p-department--development .p-department__title {
  color: var(--color-development);
}

.p-department__description {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-department__text {
  font-size: var(--font-size-body);
  color: var(--genki-brown);
  margin: 0;
}

.p-department__note {
  font-size: var(--font-size-small);
  color: var(--genki-brown);
  margin: 0;
}

/* Services Section */
.p-department__services {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-department__service-card {
  background-color: white;
  border-radius: var(--border-radius-default);
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-department__service-header {
  display: flex;
  justify-content: center;
}

.p-department__service-title {
  color: white;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin: 0;
}

.p-department--nursery .p-department__service-title {
  background-color: var(--color-nursery);
}

.p-department--development .p-department__service-title {
  background-color: var(--color-development);
}

.p-department__service-items {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.p-department__service-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.p-department__service-item {
  background-color: #f9f7f5;
  border-radius: 100px;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.p-department__service-item:hover {
  transform: translateY(-5px);
}

.p-department__service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
}

.p-department__service-icon img {
  width: 100%;
  height: 100%;
}

.p-department__service-label {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  color: var(--genki-brown);
  text-align: center;
  margin: 0;
  display: flex;
  line-height: 1.2;
  flex-direction: column;
  align-items: center;
}
.p-department__service-label .-small {
  font-size: var(--font-size-small);
}

/* CTA Button */
.p-department__cta {
  display: flex;
  justify-content: center;
}

.c-button--nursery {
  background-color: white;
  border: 1px solid var(--color-nursery);
  border-radius: var(--border-radius-default);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--color-nursery);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
}

.c-button--nursery:hover {
  background-color: var(--color-nursery);
  color: white;
}

.c-button--development {
  background-color: white;
  border: 1px solid var(--color-development);
  border-radius: var(--border-radius-default);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--color-development);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
}

.c-button--development:hover {
  background-color: var(--color-development);
  color: white;
}

/* Consultation Support Section Styles */
.p-department--consultation .p-department__inner {
  align-items: flex-end;
}

.p-department--consultation .p-department__title {
  color: var(--genki-gold);
  display: flex;
  flex-direction: column;
}

.p-department--consultation .p-department__service-title {
  background-color: var(--genki-gold);
}

.p-department--consultation .p-department__main-image {
  min-height: 908px;
}

/* Service List Styles */
.p-department__service-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 480px;
}

.p-department__service-list-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.p-department__service-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--genki-gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.p-department__service-bullet--secondary {
  background-color: #f9f7f5;
  border: 2px solid var(--genki-gold);
}

.p-department__service-text {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--genki-brown);
  margin: 0;
  line-height: 1.8;
}

.c-button--consultation {
  background-color: white;
  border: 1px solid var(--genki-gold);
  border-radius: var(--border-radius-default);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--genki-gold);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
}

.c-button--consultation:hover {
  background-color: var(--genki-gold);
  color: white;
}


@media (max-width: 767px) {
  .p-department {
    padding: 40px 0;
  }
  .p-department__inner {
    flex-direction: column;
    gap: 40px;
  }

  .p-department__logo {
    width: 48px;
    height: auto;
  }
  .p-department__title {
    font-size: var(--font-size-h3);
  }
  .p-department__text {
    font-size: var(--font-size-xs);
  }
  .p-department__service-items {
    flex-wrap: wrap;
  }
  .p-department__service-grid {
    flex-wrap: wrap;
  }

  .p-department__visual {
    flex: 0;
    width: 100%;
  }

  .p-department__service-item {
    width: 80px;
    height: 80px;
  }
  .p-department__service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0px;
  }
  .p-department__service-label {
    font-size: var(--font-size-small);
  }
  .p-department__service-label .-small {
    font-size: 10px;
  }


  .c-button--nursery,
  .c-button--development,
  .c-button--consultation {
    padding: 16px;
    width: 100%;
  }
  .c-button--nursery::after,
  .c-button--development::after,
  .c-button--consultation::after {
    margin-left: 0;
  }

  .p-department__main-image,
  .p-department--consultation .p-department__main-image {
    height: 500px;
    min-height: initial;
  }
  .p-department__main-image img,
  .p-department--consultation .p-department__main-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .p-department__content {
    flex: 0;
  }
  .p-department__service-list {
    width: 100%;
  }

  .p-department__service-title {
    font-size: var(--font-size-body);
  }
  .p-department__service-text {
    font-size: var(--font-size-xs);
  }
}


