/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif JP', serif;
  background: transparent;
  width: 100%;
  overflow-x: auto;
}


/* Main container */
.greeting-main-container {
  display: flex;
  justify-content: center;
  width: 100%;
  background: transparent;
}

/* Background wrapper */
.greeting-background-wrapper {
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-image: url('public/greeting.png');
  width: 100%;
  height: 100vh;
  min-height: 960px;
}

/* Background overlay for 20% opacity */
.greeting-background-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 1;
}

/* Header styles */
.greeting-header {
  position: absolute;
  width: 1920px;
  height: 88px;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(2px);
  z-index: 10;
}

.greeting-header-content {
  display: flex;
  width: 1280px;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  position: relative;
  top: 16px;
  left: 320px;
}

.greeting-university-logo {
  width: 98px;
  height: 56px;
  object-fit: cover;
}

/* Navigation styles */
.greeting-navigation {
  flex: 1;
}

.greeting-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  gap: 0;
}

.greeting-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 16px;
}

.greeting-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-weight: 500;
  color: #19211f;
  font-size: 14px;
  line-height: 21px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.greeting-nav-link:hover {
  color: #0066cc;
}

.greeting-external-icon,
.greeting-mail-icon {
  width: 16px;
  height: 16px;
}

/* Content area */
.greeting-content {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Faculty cards */
.greeting-faculty-card {
  display: flex;
  width: 640px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  position: absolute;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.greeting-faculty-card-1 {
  top: 139px;
  left: 640px;
}

.greeting-faculty-card-2 {
  top: 524px;
  left: 320px;
}

.greeting-card-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 0;
}

.greeting-message-text {
  flex: 1;
  font-weight: 400;
  color: black;
  line-height: 150%;
  font-size: 13px;
}

.greeting-faculty-info {
  display: flex;
  flex-direction: column;
  width: 140px;
  align-items: flex-start;
  gap: 8px;
}

.greeting-faculty-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.greeting-faculty-name {
  width: 100%;
  font-weight: 500;
  color: black;
  font-size: 11px;
  line-height: normal;
}

.greeting-faculty-name-l {
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 2560px) {
  .greeting-background-wrapper {

  }

  .greeting-header {
    width: 100%;
  }

  .greeting-faculty-card-1 {}

  .greeting-faculty-card-2 {
    left: 0%;
  }
}

@media (max-width: 1600px) {
  .greeting-faculty-card-1 {}

  .greeting-faculty-card-2 {
    left: 0%;
  }
}

@media (max-width: 1280px) {
  .greeting-header-content {
    width: 100%;
    max-width: 1280px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
  }

  .greeting-content {
    width: 100%;
    max-width: 1280px;
    padding: 0 16px;
  }

  .greeting-faculty-card {
    width: 90%;
    max-width: 640px;
  }

  .greeting-faculty-card-1 {
    left: 50%;
    transform: translateX(-50%);
    top: 120px;
  }

  .greeting-faculty-card-2 {
    left: 50%;
    transform: translateX(-50%);
    top: 500px;
  }
}

@media (max-width: 768px) {

  .greeting-background-wrapper {
    height: auto;
    min-height: 100vh;
  }

  .greeting-header-content {
    flex-direction: column;
    gap: 20px;
    height: auto;
    padding: 20px;
  }

  .greeting-header {
    height: auto;
    padding: 10px 0;
  }

  .greeting-nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .greeting-nav-item {
    padding: 8px 12px;
  }

  .greeting-faculty-card {
    margin: 20px auto;
    padding: 16px;
    font-size: 13px;
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto;
  }

  .greeting-faculty-card-1 {
    margin-top: 120px;
  }

  .greeting-card-content {
    flex-direction: column;
    gap: 20px;
  }

  .greeting-faculty-info {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .greeting-faculty-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }

  .greeting-faculty-name {
    flex: 1;
    font-size: 14px;
  }

  .greeting-faculty-name-l {
    font-size: 18px;
  }
}