/* Grid */
.swiss-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: var(--black);
  color: var(--white);
}

.footer-content {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  grid-column: span 4;
}

.footer-logo {
  font-weight: 900;
  font-size: 32px;
  margin-bottom: 24px;
}

.footer-logo span {
  color: var(--primary);
}
/* Ensure footer image logo matches text size */
.footer-logo img {
  height: 2.5em; /* equals .footer-logo font-size (32px) */
  width: auto;
  display: block;
}

.footer-description {
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-column {
  grid-column: span 2;
}

.footer-title {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 24px 0;
  color: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-inline-start: 0;
  margin-inline-start: 0;
}

/* Ensure ul aligns with title inside footer */
.footer .footer-links {
  padding: 0;
  margin: 0;
  padding-inline-start: 0;
  margin-inline-start: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  grid-column: 1/-1;
  padding-top: 40px;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: var(--gray-500);
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s;
}

.social-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 1024px) {
  .swiss-grid {
    padding: 0 24px;
  }
}
@media (max-width: 768px) {
  .footer-brand, .footer-column {
    grid-column: span 12;
  }
}
/* Header (scoped) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  z-index: 1000;
}

.header-content {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.logo {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--primary);
}
/* Ensure image logos match text size */
.logo img {
  height: 2.5em; /* equals .logo font-size (24px) */
  width: auto;
  display: block;
}

.header .nav {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.header .nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.header .nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .nav a:hover::after, .header .nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

.header .btn {
  padding: 12px 32px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--black);
  text-decoration: none;
  display: inline-block;
  border-radius: 0;
}

.header .btn-primary {
  background: var(--black);
  color: var(--white);
}

.header .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.header .btn-secondary {
  background: var(--white);
  color: var(--black);
}

.header .btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

/* Avoid overlap with fixed header */
main {
  margin-top: 80px;
}

/* Hide old mypage footer blocks to avoid duplication */
footer.footer .footer-pc,
footer.footer .footer-sp,
footer.footer .footer-service-container,
footer.footer .footer-info-container {
  display: none !important;
}
