body {
  font-size: 22px;
  color: var(--navy);
  background-color: #ffffff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -2;
  height: 100vh;
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
}

#loader {
  position: fixed;
  inset: 0;
  background: #f0f0f0;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-stars {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.05) 0%, transparent 80%),
    repeating-radial-gradient(circle, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.02) 1px, transparent 2px);
  animation: stars 15s linear infinite;
  z-index: 0;
}

@keyframes stars {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1.5);
  }
}

.loader-logo {
  width: 200px;
  opacity: 0;
  filter: blur(40px);
  transform: scale(5) rotate(720deg);
  transition: all 2s ease-out;
  z-index: 1;
}

.loader-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 4px solid #007acc;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  z-index: 0;
}

.contents {
  position: relative;
  z-index: 1;
}

#top-main-visual-area video {
  margin-top: -80px;
  width: 100%;
  height: auto;
  display: block;
}

.title-image {
  transform: translateX(-100vw);
  opacity: 0;
  width: 50%;
  transition: opacity 0.3s ease;
  display: block;
  margin: 50px auto 5px auto;
}

/* news */
.top-news-area {
  position: relative;
  text-align: center;
}

.top-news-contents {
  display: flex;
  margin: 0 10px;
}

.news-section {
  margin: auto;
  width: 100%;
  align-items: center;
}

.news-tags {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  padding: 4px 20px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  background-color: #fff;
  border: 2px dashed #ccc;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.tag-item:hover {
  transform: scale(1.05);
  background-color: #f5f5f5;
}

.tag-item.active {
  background-color: #007bb5;
  color: #fff;
  border-color: #007bb5;
  transform: scale(1);
}

.news-card-area {
  display: flex;
  width: 100%;
  gap: 20px;
}

.news-card {
  width: 90%;
  margin-bottom: 20px;
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.3);
  border: 5px dashed #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease-out, max-height 0.5s ease-out, margin-bottom 0.5s ease-out, padding 0.5s ease-out, border-width 0.5s ease-out;
  max-height: 300px;
  display: flex !important;
}

.news-card-image {
  padding: 10px 30px 10px 10px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card.hidden {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
}

.news-card-text {
  width: 100%;
}

.news-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: nowrap;
}

.news-card-left-group {
  display: flex;
}

.news-card-title i {
  font-size: 1.2em;
  color: var(--navy);
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.news-card-title h3 {
  flex-grow: 1;
  margin: 0;
  margin-bottom: 4px;
  font-size: 1.4rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-category .news-category-date {
  font-size: 0.85rem;
  color: #888;
  margin-right: 15px;
  flex-shrink: 0;
}

.news-category span {
  color: var(--navy);
  text-decoration: none;
  background-color: #e0f2f7;
  padding: 1px 8px;
  border-radius: 5px;
  display: inline-block;
  margin-right: 5px;
}

.news-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  /* padding-right: 40px; */
}

.news-card-link-area {
  width: 10%;
  margin-bottom: 20px;
  padding: 15px 20px;
  border: 5px dashed #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease-out, max-height 0.5s ease-out, margin-bottom 0.5s ease-out, padding 0.5s ease-out, border-width 0.5s ease-out;
  max-height: 300px;
  display: flex !important;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.news-card-link-area.hidden {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
}

.news-card-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-link-area:hover {
  transform: translateY(-5px);
  border: 5px dashed #555;
  color: var(--orange);
}

.news-more {
  margin: 0 auto;
  padding: 15px 20px;
  text-align: right;
}

.link-button {
  align-items: center;
  justify-content: space-between;
  color: var(--black);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.link-button span {
  margin-left: 5px;
}

.link-button:hover {
  color: var(--orange);
}

/* about */
.about-us-content {
  margin: 0 10px;
}

.about-us-text {
  /* width: 100%; */
  padding: 2%;
  border-radius: 10px;
  border: 5px dashed #ccc;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#about-us-image-contents {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
  overflow: hidden;
}

#about-us-scroll-contents {
  align-content: center;
}

.about-us-image {
  width: 20%;
  height: 20%;
}

#about-us-scroll-content {
  width: calc(100vw - 70px);
}


.company-info-buttons {
  margin-top: auto;
  display: flex;
  justify-content: end;
  align-items: center;
}

.company-info-more {
  margin-top: 30px;
  text-align: end;
}


/* service */
.top-service-area {
  margin-top: 5%;
  text-align: center;
  margin-right: 10px;
  margin-left: 10px;
}

.service-title {
  width: 100%;
  height: auto;
}

.top-service-contents {
  display: flex;
  width: 100%;
  margin: 0 auto;
  gap: 20px;
  align-items: stretch;
  flex-wrap: wrap;
}

.top-service-contents>div {
  flex: 1;
}

.service-image-area {
  position: relative;
  display: inline-block;
}

.service-label {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1.5rem;
  z-index: 2;
}

.service-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}


.service-dev-content-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  height: 100%;
  padding: 2%;
  border-radius: 10px;
  border: 5px dashed #ccc;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.service-buttons {
  margin-top: auto;
  display: flex;
  justify-content: end;
  align-items: center;
}

.service-more {
  margin-top: 35px;
  margin-left: 50px;
  text-align: end;
}

/* recruit */
.top-recruit-area {
  margin: 5% 10px;
}

.recruit-content {
  display: flex;
  gap: 20px;
}


#recruit-catch-copy {
  padding: 2%;
  border-radius: 10px;
  border: 5px dashed #ccc;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#recruit-catch-copy h2 {
  white-space: nowrap;
  display: block;
}

.tag-item-recruit {
  margin-top: 20px;
}

.tag-item-recruit-item {
  margin-bottom: 8px;
  text-align: center;
  padding: 4px 20px;
  border-radius: 30px;
  font-size: 14px;
  background-color: #fff;
  border: 2px dashed #ccc;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.tag-item-recruit-item:hover {
  transform: scale(1.05);
  background-color: #f5f5f5;
}

.recruit-text {
  margin: 0 auto;
  padding: 2%;
  border-radius: 10px;
  border: 5px dashed #ccc;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.recruit-text::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background-image: url("../images/parts/town.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 0;
  opacity: 0.05;
  z-index: -2;
  animation: scrollRecruitBackground 40s linear infinite;
}

.recruit-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15%;
  background-image: url("../images/parts/town.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 0;
  opacity: 0.05;
  z-index: -3;
  animation: scrollRecruitBackground2 60s linear infinite;
}

@keyframes scrollRecruitBackground {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100% 0;
  }
}

@keyframes scrollRecruitBackground2 {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100% 0;
  }
}

.recruit-text p {
  padding: 0 20px;
  text-align: start;
}

.recruit-buttons {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.recruit-button-text i {
  margin-right: 5px;
}

.custom-link {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
  color: var(--navy);
  border: 5px dashed #ccc;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.custom-link:hover {
  transform: translateY(-5px);
  border: 5px dashed #555;
  color: var(--orange);
}