/* Curebell Footer CSS */

/* Basic Reset for Footer */
.cb-footer {
  margin: 0;
  padding: 0;
}

.cb-footer *,
.cb-footer *::before,
.cb-footer *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Footer Container */
.cb-footer {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

/* Background Image */
.cb-footer__background {
  width: 100%;
  height: 128px;
  background-image: url('../footer-sp.png');
  background-repeat: repeat-x;
  background-position: top center;
  background-size: 400px auto;
  display: block;
}

.cb-footer__container {
  width: 100%;
  padding: 0px 20px 0px;
}

.cb-footer__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

.cb-footer__left {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

/* Links */
.cb-footer__links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-footer__link-item {
  position: relative;
  width: 100%;
}

.cb-footer__link-item::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #eff0f2;
}

.cb-footer__link-item:last-child::after {
  display: none;
}

.cb-footer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #383838;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 0 0 16px;
  transition: color 0.2s;
}

.cb-footer__link:hover {
  color: #666666;
}

.cb-footer__arrow {
  margin-left: 8px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
  color: inherit;
  vertical-align: middle;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-footer__link:hover .cb-footer__arrow {
  transform: translateX(3px);
}

/* Copyright */
.cb-footer__copyright {
  color: #c8c8c8;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  width: 100%;
}

/* Brand/Logo */
.cb-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cb-footer__brand:hover {
  opacity: 0.8;
}

.cb-footer__logo {
  height: 32px;
  width: auto;
  display: block;
}

.cb-footer__nav {
  width: 100%;
}

/* Desktop Styles */
@media screen and (min-width: 768px) {
  .cb-footer__container {
    padding: 0px 32px 0px;
  }

  .cb-footer__inner {
    display: grid;
    grid-template-columns: 1fr 335px;
    grid-template-rows: auto auto;
    align-items: flex-start;
    row-gap: 0;
    column-gap: 52px;
  }

  .cb-footer__left {
    grid-column: 1;
    grid-row: 1;
  }

  .cb-footer__background {
    height: 80px;
    background-image: url('../footer.png');
  }

  .cb-footer__links {
    width: 335px;
    height: 200px;
    justify-content: space-between;
  }

  .cb-footer__copyright {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }

  .cb-footer__brand {
    justify-content: flex-start;
  }

  .cb-footer__nav {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}
