@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Noto Sans KR', sans-serif;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== HEADER ===== */
.header {
  width: 100%;
  height: 100px;
  background: #fff;
  position: relative;
  z-index: 1000;
}

.header-inner {
  width: min(1400px, calc(100% - 80px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 220px;
}

.nav {
  display: flex;
  gap: clamp(20px, 4vw, 60px);
}

.nav a {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.nav a:hover,
.nav a.active {
  color: #14aeea;
}

/* ===== HAMBURGER ===== */
.menu-toggle {
  display: none;
  width: 34px;
  height: 30px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 6px 0;
  background: #222;
  border-radius: 10px;
  transition: 0.3s;
}

/* ===== SUB VISUAL ===== */
.sub-visual {
  width: 100%;
  height: 300px;
  background:
    linear-gradient(90deg, rgba(16,32,82,0.7), rgba(0,170,220,0.5)),
    url("/images/img_101.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-visual h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 800;
}

/* page01 ~ page05 visual */
.sub01 {
  background:
    linear-gradient(90deg, rgba(16,32,82,0.7), rgba(0,170,220,0.5)),
    url("/images/img_101.png") center/cover no-repeat;
}

.sub02,
.team-visual {
  background:
    linear-gradient(90deg, rgba(16,32,82,0.7), rgba(0,170,220,0.5)),
    url("/images/img_201.png") center/cover no-repeat;
}

.sub03,
.portfolio-visual {
  background:
    linear-gradient(90deg, rgba(16,32,82,0.7), rgba(0,170,220,0.5)),
    url("/images/img_301.png") center/cover no-repeat;
}

.sub04 {
  background:
    linear-gradient(90deg, rgba(16,32,82,0.7), rgba(0,170,220,0.5)),
    url("/images/img_401.png") center/cover no-repeat;
}

.sub05 {
  background:
    linear-gradient(90deg, rgba(16,32,82,0.7), rgba(0,170,220,0.5)),
    url("/images/img_501.png") center/cover no-repeat;
}

/* ===== PAGE01 MESSAGE ===== */
.what-message {
  width: 100%;
  padding: 90px 20px;
  background: #f5f5f5;
  text-align: center;
}

.what-message-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.what-message h2 {
  margin: 0;
  font-size: clamp(26px, 2vw, 36px);
  font-weight: 800;
  line-height: 1.5;
  color: #222;
}

/* ===== PAGE01 CONTENT ===== */
.what-content,
.global-content {
  width: 100%;
  padding: 100px 20px 40px;
  background: #fff;
}

.what-content-inner,
.global-content-inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.what-item,
.global-item {
  position: relative;
  z-index: 2;
  width: 380px;
  text-align: center;
  margin-bottom: 100px;
}

.what-item img,
.global-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.what-item:hover img,
.global-item:hover img {
  transform: translateY(-6px);
}

.what-item h3,
.global-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #222;
}

.what-item p,
.global-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.item-left {
  margin-left: 100px;
}

.item-right {
  margin-left: auto;
  margin-right: 80px;
}

/* ===== PAGE01 SHAPE ===== */
.shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.shape img {
  width: 170px;
  opacity: 0.7;
}

.shape-01 {
  top: -30px;
  right: 80px;
}

.shape-02 {
  top: 410px;
  left: 20px;
}

.shape-03 {
  top: 60px;
  right: 80px;
}

.shape-04 {
  top: 430px;
  left: 20px;
}

.shape-05 {
  bottom: 60px;
  right: 120px;
}

/* ===== PAGE01 SLOGAN ===== */
.what-slogan {
  width: 100%;
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}

.what-slogan h2 {
  margin: 0;
  font-size: clamp(22px, 1.6vw, 30px);
  font-weight: 800;
  line-height: 1.45;
  color: #222;
}

/* ===== PAGE01 BEYOND ===== */
.beyond-section {
  width: 100%;
  background: #fff;
}

.beyond-title {
  width: 100%;
  padding: 70px 20px;
  background: #f5f5f5;
  text-align: center;
}

.beyond-title h2 {
  margin: 0 auto;
  font-size: clamp(24px, 1.8vw, 34px);
  font-weight: 800;
  line-height: 1.5;
  color: #222;
}

.beyond-map {
  width: 100%;
  padding: 90px 20px 120px;
  text-align: center;
  background: #fff;
}

.beyond-map img {
  width: min(1100px, 100%);
  margin: 0 auto;
}

/* ===== PAGE02 TEAM ===== */
.team-section {
  width: 100%;
  padding: 90px 20px 120px;
  background: #fff;
  text-align: center;
}

.team-inner {
  max-width: 1050px;
  margin: 0 auto;
}

.team-section h2 {
  margin: 0;
  font-size: clamp(28px, 2.2vw, 38px);
  font-weight: 800;
  color: #222;
}

.team-title-line {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 18px 0 70px;
}

.team-title-line span {
  display: block;
  width: 16px;
  height: 3px;
  background: #b9c1c8;
}

.team-title-line span:nth-child(2) {
  background: #16aee8;
}

.team-title-line span:nth-child(3) {
  background: #1b2a7a;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px 58px;
}

.team-card {
  position: relative;
  min-height: 185px;
  padding: 40px 28px 28px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 12px 18px 30px rgba(0, 110, 150, 0.13);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
}

.team-card.type-blue::before {
  background: #10aee5;
}

.team-card.type-navy::before {
  background: #20236d;
}

.team-card.type-gray::before {
  background: #999;
}

.team-card h3 {
  margin: 0;
  min-height: 58px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
  color: #222;
}

.team-card .line {
  width: 100%;
  height: 1px;
  margin: 28px 0 22px;
  background: #d9d9d9;
}

.team-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.team-card.type-blue p {
  color: #00a8ef;
}

.team-card.type-navy p {
  color: #20236d;
}

.team-card.type-gray p {
  color: #999;
}

/* ===== PAGE03 PORTFOLIO ===== */
.portfolio-page {
  width: 100%;
  padding: 100px 20px 130px;
  background: #fff;
  text-align: center;
}

.portfolio-page-inner {
  max-width: 1050px;
  margin: 0 auto;
}

.portfolio-page h2 {
  margin: 0;
  font-size: clamp(30px, 2.2vw, 40px);
  font-weight: 800;
  color: #222;
}

.portfolio-title-line {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 18px 0 60px;
}

.portfolio-title-line span {
  display: block;
  width: 16px;
  height: 3px;
  background: #b9c1c8;
}

.portfolio-title-line span:nth-child(2) {
  background: #16aee8;
}

.portfolio-title-line span:nth-child(3) {
  background: #1b2a7a;
}

.portfolio-grid {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
}

.portfolio-item {
  position: relative;
  height: 200px;
  background: #fff;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-item > img:first-child {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.portfolio-item .hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .hover-img {
  opacity: 1;
}

.portfolio-item:hover > img:first-child {
  opacity: 0;
}

/* ===== PAGE04 NEWS ===== */
.news-section {
  width: 100%;
  padding: 95px 20px 120px;
  background: #fff;
}

.news-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.news-search {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

.news-search select,
.news-search input,
.news-search button {
  height: 38px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
}

.news-search select {
  width: 110px;
  padding: 0 10px;
  border: 1px solid #cfcfcf;
  color: #333;
  background: #fff;
}

.news-search input {
  width: 300px;
  padding: 0 12px;
  border: 1px solid #cfcfcf;
}

.news-search button {
  width: 110px;
  border: 0;
  background: #222;
  color: #fff;
  cursor: pointer;
}

.news-search button:hover {
  background: #00aeef;
}

.news-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #222;
  table-layout: fixed;
}

.news-table th {
  height: 55px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid #d9d9d9;
}

.news-table td {
  height: 48px;
  font-size: 14px;
  color: #444;
  text-align: center;
  border-bottom: 1px solid #d9d9d9;
}

.news-table td.title {
  text-align: left;
  padding-left: 25px;
}

.news-table td.title a {
  display: inline-block;
  max-width: 100%;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-table td.title a:hover {
  color: #00aeef;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 45px;
}

.pagination a {
  font-size: 18px;
  color: #222;
}

.pagination a.active {
  color: #00aeef;
  font-weight: 800;
}

/* ===== PAGE05 CONTACT ===== */
.contact-page {
  width: 100%;
  padding: 95px 20px 120px;
  background: #fff;
}

.contact-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-heading {
  text-align: center;
  margin-bottom: 65px;
}

.contact-heading h2 {
  margin: 0;
  font-size: clamp(30px, 2.2vw, 40px);
  font-weight: 800;
  color: #222;
}

.contact-title-line {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 18px;
}

.contact-title-line span {
  display: block;
  width: 16px;
  height: 3px;
  background: #b9c1c8;
}

.contact-title-line span:nth-child(2) {
  background: #16aee8;
}

.contact-title-line span:nth-child(3) {
  background: #1b2a7a;
}

.contact-info-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 45px;
}

.contact-info-item {
  min-height: 130px;
  padding: 32px 20px;
  border: 1px solid #e0e0e0;
  text-align: center;
  background: #fff;
  box-shadow: 8px 14px 28px rgba(0, 110, 150, 0.08);
}

.contact-info-item strong {
  display: block;
  margin-bottom: 16px;
  color: #00aeef;
  font-size: 17px;
  font-weight: 800;
}

.contact-info-item p {
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.contact-map-wrap {
  width: 100%;
  border-top: 2px solid #222;
  padding-top: 35px;
}

#kakaoMap {
  width: 100%;
  height: 450px;
  border: 1px solid #ddd;
  background: #f5f5f5;
}

/* ===== FOOTER ===== */
.footer {
  width: 100%;
  background: #efefef;
  padding: 40px 0;
}

.footer-inner {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left img {
  width: 180px;
  opacity: 0.6;
}

.footer-right {
  text-align: right;
  font-size: 14px;
  color: #666;
}

.footer-right .copyright {
  margin-top: 5px;
  font-size: 13px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .header {
    height: 80px;
  }

  .header-inner {
    width: calc(100% - 32px);
    height: 80px;
  }

  .logo img {
    width: 180px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  }

  .nav a {
    display: block;
    padding: 18px 24px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
  }

  .header.open .nav {
    display: flex;
  }

  .header.open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .header.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header.open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .sub-visual {
    height: 220px;
  }

  .what-message {
    padding: 60px 20px;
  }

  .what-message h2 {
    font-size: 24px;
  }

  .what-content,
  .global-content {
    padding: 70px 20px 40px;
  }

  .what-item,
  .global-item {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 60px;
  }

  .item-left,
  .item-right {
    margin-left: auto;
    margin-right: auto;
  }

  .shape {
    display: none;
  }

  .what-slogan {
    padding: 45px 20px;
  }

  .beyond-title {
    padding: 50px 20px;
  }

  .beyond-title h2 {
    font-size: 22px;
  }

  .beyond-map {
    padding: 60px 20px 80px;
  }

  .team-section {
    padding: 70px 20px 90px;
  }

  .team-title-line {
    margin-bottom: 50px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .team-card {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

  .portfolio-page {
    padding: 70px 20px 90px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item {
    height: 170px;
  }

  .news-section {
    padding: 70px 16px 90px;
  }

  .news-search {
    flex-wrap: wrap;
  }

  .news-search select {
    width: 34%;
  }

  .news-search input {
    width: calc(66% - 6px);
  }

  .news-search button {
    width: 100%;
  }

  .news-table col:nth-child(1) {
    width: 55px !important;
  }

  .news-table col:nth-child(3) {
    width: 105px !important;
  }

  .news-table col:nth-child(4) {
    width: 60px !important;
  }

  .news-table th,
  .news-table td {
    font-size: 12px;
  }

  .news-table td.title {
    padding-left: 10px;
  }

  .pagination {
    gap: 12px;
  }

  .pagination a {
    font-size: 15px;
  }

  .contact-page {
    padding: 70px 16px 90px;
  }

  .contact-heading {
    margin-bottom: 45px;
  }

  .contact-info-box {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-info-item {
    min-height: auto;
    padding: 26px 18px;
  }

  #kakaoMap {
    height: 340px;
  }

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

  .footer-right {
    text-align: center;
  }
}