/* Footer - 2025 Premium Dark Design with EN/JP Typography */
@layer base, layout, components, utilities, pages;

@layer components {

/* ========================================
   1. FOOTER CONTAINER
   ======================================== */
.im-footer {
  position: relative;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  margin-top: 0;
  overflow: hidden;
}

/* Decorative pattern overlay */
.footer__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   2. NAVIGATION SECTION (Top Row)
   ======================================== */
.footer-nav {
  padding: clamp(56px, 8vw, 80px) 0 clamp(48px, 6vw, 64px);
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Section Header with EN eyebrow */
.footer-nav__header {
  margin-bottom: clamp(40px, 5vw, 56px);
  text-align: center;
}

.footer-nav__eyebrow {
  display: inline-block;
  font-family: 'Outfit', var(--font-sans, system-ui, sans-serif);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #60a5fa;
}

.footer-nav__accent {
  width: 48px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 1px;
}

/* Directory Grid */
.footer-directory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 48px;
}

.footer-dir-col {
  min-width: 0;
}

.footer-dir-section {
  /* Container for each column */
}

/* Column Title with EN/JP */
.footer-dir-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-dir-title-en {
  font-family: 'Outfit', var(--font-sans, system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #60a5fa;
}

.footer-dir-title-text {
  font-family: 'Zen Kaku Gothic New', var(--font-sans, system-ui, sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Link List */
.footer-dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-dir-item {
  position: relative;
}

.footer-dir-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: 'Zen Kaku Gothic New', var(--font-sans, system-ui, sans-serif);
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-dir-link::before {
  content: '';
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-dir-link:hover {
  color: #fff;
}

.footer-dir-link:hover::before {
  width: 16px;
}

/* ========================================
   3. INFO SECTION (Bottom Row)
   ======================================== */
.footer-info {
  padding: clamp(40px, 5vw, 56px) 0;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.15);
}

.footer-info-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 48px;
  align-items: center;
}

/* Brand (Logo + Tagline) */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo > a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-logo > a:hover {
  opacity: 0.8;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
  display: block;
  filter: brightness(1.1);
}

.footer-logo .site-title {
  font-family: 'Outfit', var(--font-sans, system-ui, sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-family: 'Zen Kaku Gothic New', var(--font-sans, system-ui, sans-serif);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Company Info Card */
.footer-company {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-company__addr {
  font-style: normal;
  font-family: 'Zen Kaku Gothic New', var(--font-sans, system-ui, sans-serif);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin: 0;
}

.footer-company__contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-company__tel,
.footer-company__hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: 'Zen Kaku Gothic New', var(--font-sans, system-ui, sans-serif);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.footer-icon {
  flex-shrink: 0;
  color: #60a5fa;
  opacity: 0.9;
}

.footer-company__tel a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.footer-company__tel a:hover {
  color: #60a5fa;
}

.footer-company__hours {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Partner Section */
.footer-partner {
  text-align: center;
}

.footer-partner__label {
  font-family: 'Outfit', var(--font-sans, system-ui, sans-serif);
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-partner__link {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-partner__link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
}

.footer-partner__image {
  max-width: 110px;
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.9) grayscale(0.2);
  transition: filter 0.3s ease;
}

.footer-partner__link:hover .footer-partner__image {
  filter: brightness(1) grayscale(0);
}

/* Actions (CTA + Social) */
.footer-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-family: 'Zen Kaku Gothic New', var(--font-sans, system-ui, sans-serif);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.footer-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.5);
}

.footer-cta-button__icon {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-cta-button:hover .footer-cta-button__icon {
  transform: translateX(4px);
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-social__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Instagram */
.footer-social__link--instagram:hover {
  background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
  border-color: transparent;
}

/* YouTube */
.footer-social__link--youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
}

.footer-social__icon {
  height: 20px;
  width: auto;
  max-width: 24px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-social__link:hover .footer-social__icon {
  opacity: 1;
}

/* ========================================
   4. FOOTER BOTTOM (Copyright)
   ======================================== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 24px 0;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-bottom-menu a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-family: 'Zen Kaku Gothic New', var(--font-sans, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-bottom-menu a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-copyright {
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
  font-family: 'Outfit', var(--font-sans, system-ui, sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* ========================================
   5. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
  .footer-directory {
    gap: 28px 36px;
  }

  .footer-info-inner {
    gap: 36px;
  }
}

@media (max-width: 1024px) {
  .footer-directory {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
  }

  .footer-info-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-company {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-partner {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .footer-actions {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .footer-nav {
    padding: clamp(40px, 6vw, 56px) 0;
  }

  .footer-nav__header {
    margin-bottom: 32px;
  }

  .footer-directory {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
  }

  .footer-dir-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .footer-info {
    padding: clamp(36px, 5vw, 48px) 0;
  }

  .footer-info-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }

  /* ロゴ・タグライン */
  .footer-brand {
    gap: 12px;
    margin-bottom: 28px;
    align-items: center;
  }

  /* 会社情報 */
  .footer-company {
    width: 100%;
    max-width: 400px;
    margin-bottom: 28px;
    text-align: center;
  }

  .footer-company__contact {
    justify-content: center;
  }

  /* 運営会社 */
  .footer-partner {
    width: 100%;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* CTA・SNS */
  .footer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .footer-cta-button {
    width: 100%;
    max-width: 280px;
  }

  .footer-social {
    justify-content: center;
    gap: 16px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-bottom-menu {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .footer-directory {
    grid-template-columns: 1fr 1fr;
    gap: 24px 28px;
  }

  .footer-dir-title-en {
    font-size: 0.625rem;
  }

  .footer-dir-title-text {
    font-size: 0.875rem;
  }

  .footer-dir-link {
    font-size: 0.8125rem;
  }

  .footer-company {
    padding: 16px 20px;
  }

  .footer-bottom-menu {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .footer-logo img {
    max-width: 130px;
  }

  .footer-tagline {
    font-size: 0.6875rem;
  }

  .footer-partner__image {
    max-width: 100px;
  }

  .footer-cta-button {
    padding: 14px 28px;
    font-size: 0.8125rem;
  }

  .footer-social__link {
    width: 40px;
    height: 40px;
  }
}

/* ========================================
   6. REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .footer-cta-button,
  .footer-dir-link,
  .footer-partner__link,
  .footer-social__link {
    transition-duration: 0.01ms !important;
  }
}

}
