/* 언어 전환 폰트 크기 및 스타일 통일 */
#header #language a {
  font-size: 15px !important;
  font-weight: bold;
  opacity: 0.6;
}

/* 태블릿: 로고/내비 동일 4열 그리드 기준 */
@media (max-width: 1200px) {
  .footer .md-flex.md-justify-between:first-child {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 20px !important;
    padding: 0 4% !important;
  }

  /* 로고를 부모 4열 그리드에 직접 배치 */
  .footer .footer__logos {
    display: contents !important;
  }

  /* Callisto = 1열 (私たちについて 열과 정렬) */
  .footer .footer__logos .footer__logo:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  /* Datahub = 3열 (採用情報 열과 정렬) */
  .footer .footer__logos .footer__logo:nth-child(2) {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  /* 내비: 2행 전체, 4열 구조 유지 */
  .footer .grid {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }

  .footer .footer__logo img {
    max-width: 120px !important;
    height: auto !important;
  }
	
  /* 텍스트 컬럼을 컬럼 시작점에 고정 */
  .footer .grid > div {
    justify-self: start !important;
    text-align: left !important;
  }
}

/* 모바일: 2열 x 3행 */
@media (max-width: 768px) {
  .footer .md-flex.md-justify-between:first-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 16px !important;
    padding: 0 4% !important;
  }

  /* 로고/메뉴를 부모 그리드에 직접 배치 */
  .footer .footer__logos { display: contents !important; }
  .footer .grid { display: contents !important; }

  /* 1행: 로고 2개 */
  .footer .footer__logos .footer__logo:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }
  .footer .footer__logos .footer__logo:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  /* 2행: 私たちについて || ニュース */
  .footer .grid > div:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .footer .grid > div:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  /* 3행: 採用情報 || お問い合わせ */
  .footer .grid > div:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
  .footer .grid > div:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  .footer .grid > div {
    justify-self: start !important;
    text-align: left !important;
  }

  .footer .footer__logo img {
    max-width: 120px !important;
    height: auto !important;
  }
}


/* 아주 작은 화면 */
@media (max-width: 400px) {
  .footer .footer__logo img {
    max-width: 100px !important;
  }
}

/* 극소형 화면 (268px 이하) */
@media (max-width: 280px) {
  .footer {
    min-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .footer .md-flex.md-justify-between:first-child {
    grid-template-columns: 1fr !important;
  }
  
  .footer a.footer__logo:first-of-type,
  .footer a.footer__logo:nth-of-type(2) {
    grid-column: 1 !important;
    justify-self: center !important;
  }
  
  .footer a.footer__logo:nth-of-type(2) {
    grid-row: 2 !important;
  }
  
  .footer .grid {
    grid-row: 3 !important;
  }
}

.footer__logos { display: flex; flex-direction: column; gap: 10px; }

/* Member Interview: 사진 크기 통일 + PC/모바일 분기 */
.member-photo img {
  width: 255px !important;
  height: 255px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
}

/* 모바일: 150x150 */
@media (max-width: 767px) {
  .member-photo img {
    width: 150px !important;
    height: 150px !important;
  }
  .member-photo img.pc { display: none !important; }
  .member-photo img.sp { display: block !important; }
}

/* PC만 보이게 */
@media (min-width: 768px) {
  .member-photo img.pc { display: block !important; }
  .member-photo img.sp { display: none !important; }
}