/* Anycode 共通フッター (school-portal/src/components/Footer.tsx と同一デザイン) */

#footer.l-footer {
  margin: 64px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

#footer.l-footer .ac-footer {
  border-top: 1px solid #1e293b;
  background-color: #0f172a;
  color: #f1f5f9;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  box-sizing: border-box;
}

#footer.l-footer .ac-footer *,
#footer.l-footer .ac-footer *::before,
#footer.l-footer .ac-footer *::after {
  box-sizing: border-box;
}

#footer.l-footer .ac-footer a {
  color: inherit;
  text-decoration: none;
}

#footer.l-footer .ac-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer.l-footer .ac-footer li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer.l-footer .ac-footer p {
  margin: 0;
}

#footer.l-footer .ac-footer button {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
}

#footer.l-footer .ac-footer svg {
  display: block;
  flex-shrink: 0;
}

#footer.l-footer .ac-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
}

@media (min-width: 640px) {
  #footer.l-footer .ac-footer__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* 上段: ブランド紹介 + 主要アクション */
#footer.l-footer .ac-footer__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  #footer.l-footer .ac-footer__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

#footer.l-footer .ac-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  transition: opacity 0.15s ease;
}

#footer.l-footer .ac-footer__brand:hover {
  opacity: 0.9;
}

#footer.l-footer .ac-footer__brand-icon {
  width: 24px;
  height: 24px;
  color: #818cf8;
}

#footer.l-footer .ac-footer__brand-name {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

#footer.l-footer .ac-footer__desc {
  margin-top: 10px;
  max-width: 672px;
  font-size: 13px;
  line-height: 1.625;
  color: #e2e8f0;
}

#footer.l-footer .ac-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#footer.l-footer .ac-footer__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  background-color: rgba(99, 102, 241, 0.2);
  padding: 8px 14px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: #e0e7ff;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.4);
  transition: background-color 0.15s ease, color 0.15s ease;
}

#footer.l-footer .ac-footer__btn-primary:hover {
  background-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

#footer.l-footer .ac-footer__btn-primary-icon {
  width: 14px;
  height: 14px;
}

#footer.l-footer .ac-footer__btn-secondary {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid #475569;
  background-color: rgba(30, 41, 59, 0.8);
  padding: 8px 14px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #f1f5f9;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

#footer.l-footer .ac-footer__btn-secondary:hover {
  border-color: #94a3b8;
  background-color: #1e293b;
  color: #ffffff;
}

/* 中段: 4列グリッド（コース・スキルは2列折り返しで幅2列、言語・FW・クラウドは同格で横並び） */
#footer.l-footer .ac-footer__grid,
#footer.l-footer .ac-footer__subgrid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

#footer.l-footer .ac-footer__grid {
  padding-top: 16px;
}

@media (min-width: 768px) {
  #footer.l-footer .ac-footer__grid,
  #footer.l-footer .ac-footer__subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 32px;
  }

  #footer.l-footer .ac-footer__grid {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  #footer.l-footer .ac-footer__section--span2 {
    grid-column: span 2 / span 2;
  }

  #footer.l-footer .ac-footer__tag-row {
    grid-column: span 2 / span 2;
    border-top: 1px solid rgba(30, 41, 59, 0.8);
    padding-top: 24px;
  }
}

@media (min-width: 1024px) {
  #footer.l-footer .ac-footer__grid,
  #footer.l-footer .ac-footer__subgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #footer.l-footer .ac-footer__tag-row {
    grid-column: span 4 / span 4;
  }
}

#footer.l-footer .ac-footer__section {
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  padding: 12px 0;
}

@media (min-width: 768px) {
  #footer.l-footer .ac-footer__section {
    border-bottom: 0;
    padding: 0;
  }
}

#footer.l-footer .ac-footer__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#footer.l-footer .ac-footer__section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.15s ease;
}

#footer.l-footer .ac-footer__section-link:hover {
  color: #a5b4fc;
}

#footer.l-footer .ac-footer__section-icon {
  width: 16px;
  height: 16px;
  color: #818cf8;
}

#footer.l-footer .ac-footer__section-arrow {
  width: 12px;
  height: 12px;
  color: #64748b;
  opacity: 0;
  transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

#footer.l-footer .ac-footer__section-link:hover .ac-footer__section-arrow {
  transform: translateX(2px);
  color: #a5b4fc;
  opacity: 1;
}

#footer.l-footer .ac-footer__toggle {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 0;
  color: #e2e8f0;
  transition: color 0.15s ease;
}

#footer.l-footer .ac-footer__toggle:hover {
  color: #ffffff;
}

@media (min-width: 768px) {
  #footer.l-footer .ac-footer__toggle {
    display: none;
  }
}

#footer.l-footer .ac-footer__chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

#footer.l-footer .ac-footer__toggle[aria-expanded="true"] .ac-footer__chevron {
  transform: rotate(180deg);
}

#footer.l-footer .ac-footer__section-body {
  display: none;
}

#footer.l-footer .ac-footer__section.is-open .ac-footer__section-body {
  display: block;
  margin-top: 12px;
}

@media (min-width: 768px) {
  #footer.l-footer .ac-footer__section-body {
    display: block;
    margin-top: 14px;
  }
}

#footer.l-footer .ac-footer__link-list {
  font-size: 13px;
  line-height: 1.625;
  color: #e2e8f0;
}

#footer.l-footer .ac-footer__link-list li + li {
  margin-top: 8px;
}

@media (min-width: 640px) {
  #footer.l-footer .ac-footer__link-list--2col {
    column-count: 2;
    column-gap: 32px;
  }

  #footer.l-footer .ac-footer__link-list--2col li + li {
    margin-top: 0;
  }

  #footer.l-footer .ac-footer__link-list--2col li {
    margin-bottom: 8px;
    break-inside: avoid;
  }
}

#footer.l-footer .ac-footer__link-list a {
  display: inline-block;
  transition: color 0.15s ease;
}

#footer.l-footer .ac-footer__link-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

#footer.l-footer .ac-footer__tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
}

#footer.l-footer .ac-footer__tag {
  display: inline-block;
  border-radius: 8px;
  border: 1px solid rgba(71, 85, 105, 0.8);
  background-color: rgba(30, 41, 59, 0.8);
  padding: 4px 10px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #f1f5f9;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

#footer.l-footer .ac-footer__tag:hover {
  border-color: rgba(129, 140, 248, 0.7);
  background-color: #1e293b;
  color: #ffffff;
}

@media (min-width: 768px) {
  #footer.l-footer .ac-footer__wide {
    border-top: 1px solid rgba(30, 41, 59, 0.8);
    padding-top: 24px;
  }
}

/* 最下部コピーライト帯 */
#footer.l-footer .ac-footer__bottom {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 12px;
  line-height: 16px;
  color: #cbd5e1;
}

@media (min-width: 640px) {
  #footer.l-footer .ac-footer__bottom {
    flex-direction: row;
  }
}

#footer.l-footer .ac-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 16px;
  row-gap: 6px;
}

@media (min-width: 640px) {
  #footer.l-footer .ac-footer__legal {
    justify-content: flex-start;
  }
}

#footer.l-footer .ac-footer__legal a {
  color: #cbd5e1;
  transition: color 0.15s ease;
}

#footer.l-footer .ac-footer__legal a:hover {
  color: #ffffff;
  text-decoration: underline;
}
