/* Footer Section - Modern Design with Primary Background */

:where(.site-footer) {
  background: linear-gradient(
    135deg,
    var(--wp--preset--color--primary) 0%,
    var(--wp--preset--color--primary-light) 100%
  );
  color: var(--wp--preset--color--white);
  padding: var(--wp--preset--spacing--x-large) 0 0;
  margin-top: var(--wp--preset--spacing--x-large);
  position: relative;
  overflow: hidden;
}

:where(.site-footer::before) {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

:where(.site-footer::after) {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(245, 200, 138, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(245, 200, 138, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

:where(.footer-content) {
  max-width: var(--wp--custom--layout--wide-size);
  margin: 0 auto;
  padding: 0 var(--wp--preset--spacing--medium);
}

:where(.footer-main) {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--wp--preset--spacing--x-large);
  padding-bottom: var(--wp--preset--spacing--large);
}

/* Footer Logo Section */
:where(.footer-logo-section) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--medium);
}

:where(.footer-logo) h3 {
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: var(--wp--custom--font-weight--bold);
  color: var(--wp--preset--color--white);
  margin: 0 0 var(--wp--preset--spacing--small) 0;
  font-family: var(--wp--preset--font-family--noto-sans-jp);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
}

:where(.footer-tagline) {
  font-size: 15px;
  color: var(--wp--preset--color--gray-500);
  margin: 0;
  line-height: 1.6;
}

:where(.footer-contact) {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

:where(.contact-info) .clinic-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--wp--preset--color--brand);
  margin: 0 0 10px 0;
}

:where(.contact-info) .address {
  font-size: 15px;
  color: var(--wp--preset--color--gray-400);
  line-height: 1.7;
  margin: 0 0 12px 0;
}

:where(.contact-info) .phone {
  font-size: 16px;
  margin: 0;
}

:where(.contact-info) .phone a {
  color: var(--wp--preset--color--brand-300);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

:where(.contact-info) .phone a:hover {
  color: var(--wp--preset--color--brand-100);
  text-shadow: 0 0 8px rgba(245, 200, 138, 0.5);
}

:where(.footer-hours) h4 {
  font-size: 17px;
  color: var(--wp--preset--color--brand-300);
  margin: 0 0 18px 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Footer Navigation Section */
:where(.footer-nav-section) {
  display: flex;
  gap: 40px;
}

:where(.footer-menu-column) {
  flex: 1;
}

:where(.footer-menu-column) h4 {
  font-size: 17px;
  color: var(--wp--preset--color--brand-300);
  margin: 0 0 24px 0;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 8px;
}

:where(.footer-menu-column) h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #f5c88a, transparent);
}

:where(.footer-menu) {
  list-style: none;
  margin: 0;
  padding: 0;
}

:where(.footer-menu) li {
  margin-bottom: 12px;
}

:where(.footer-menu) a {
  color: var(--wp--preset--color--gray-400);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

:where(.footer-menu) a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--brand);
  transition: width 0.3s ease;
}

:where(.footer-menu) a:hover {
  color: var(--wp--preset--color--white);
  transform: translateX(4px);
}

:where(.footer-menu) a:hover::after {
  width: 100%;
}

/* Footer CTA Section */
:where(.footer-cta-section) {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}
:where(.contact-cta__phone) {
  height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--white);
  img {
    color: var(--wp--preset--color--white);
  }
}
:where(.footer-reservation) h4 {
  font-size: 18px;
  color: var(--wp--preset--color--brand-300);
  margin: 0 0 24px 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}

:where(.footer-phone) {
  margin: 15px 0;
}

:where(.phone-link) {
  font-size: 28px;
  font-weight: 700;
  color: var(--wp--preset--color--brand);
  text-decoration: none;
  font-family: "Zen Kaku Gothic New", sans-serif;
  letter-spacing: 0.05em;
}

:where(.phone-link):hover {
  color: var(--wp--preset--color--brand-accent);
}

:where(.footer-hours-text) {
  font-size: 14px;
  color: var(--wp--preset--color--gray-500);
  margin: 10px 0 20px 0;
  line-height: 1.6;
}

:where(.footer-btn-reservation) {
  background: linear-gradient(
    135deg,
    var(--wp--preset--color--brand),
    var(--wp--preset--color--brand-accent)
  );
  color: var(--wp--preset--color--white);
  padding: 12px 24px;
  border-radius: var(--wp--custom--border-radius--medium) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

:where(.footer-btn-reservation):hover {
  transform: none !important;
  background: rgba(245, 200, 138, 0.9);
}

:where(.footer-social) h4 {
  font-size: 17px;
  color: var(--wp--preset--color--brand-300);
  margin: 0 0 18px 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}

:where(.instagram-link) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wp--preset--color--gray-400);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--wp--custom--border-radius--small) !important;
}

:where(.instagram-link):hover {
  color: var(--wp--preset--color--white);
  background: rgba(255, 255, 255, 0.15);
  border-color: #f5c88a;
  transform: none !important;
}

/* Design Refinement Styles */
:where(.contact-info),
:where(.footer-hours) {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--wp--custom--border-radius--small) !important;
  padding: 20px;
}

:where(.footer-reservation) {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--wp--custom--border-radius--small) !important;
  padding: 24px;
}

/* Footer Bottom */
:where(.footer-bottom) {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 25px 0;
  margin-top: 50px;
  background: rgba(0, 0, 0, 0.3);
}

:where(.footer-bottom-content) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

:where(.copyright) {
  color: var(--wp--preset--color--text);
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.03em;
}

:where(.footer-links) {
  display: flex;
  gap: 20px;
}

:where(.footer-links) a {
  color: var(--wp--preset--color--gray-400);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}

:where(.footer-links) a:hover {
  color: var(--wp--preset--color--white);
  background: rgba(255, 255, 255, 0.1);
}

