@import "reset.css";
@import url(https://spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css);

:root {
  --max-width: 1300px;
  --color-primary: #3748ee;
}

body {
  font-family: "Spoqa Han Sans Neo", "sans-serif";
  word-break: keep-all;
  text-wrap: pretty;
}

/* 공통 */
.max-width {
  max-width: var(--max-width);
  width: 100%;
}

.color_primary {
  color: var(--color-primary);
}

.dot_color_primary {
  position: relative;
}

.dot_color_primary::after {
  content: "";
  position: absolute;
  bottom: 0.2em;
  right: -0.3em;
  height: 0.2em;
  width: 0.2em;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* 헤더 */
header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  height: 100px;
  background-color: #fff;
  z-index: 100;
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__logo {
  height: 70px;
}

.header__wrapper nav {
  height: 100%;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 50px;
  height: 100%;
}

.header__menu__item {
  color: #333;
  font-size: 18px;
  font-weight: 500;
}

.header__menu__item:hover {
  color: var(--color-primary);
  font-weight: bold;
}

.sub-header {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  justify-content: center;
  padding: 50px 20px;
  background-color: #f8f8f8;
}

header:has(.header__menu:hover) .sub-header,
.sub-header:hover {
  display: flex;
}

.sub-header__menu__list {
  display: flex;
  gap: 180px;
}

.sub-header__menu__item_main {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.sub-header__menu__item_sub {
  padding: 4px 0;
  color: #666;
  font-weight: 300;
}

.sub-header__menu__item_sub a:hover {
  color: var(--color-primary);
}

/* 배너 */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 800px;
  background: no-repeat center/cover url(../image/banner.png);
}

.banner__wrapper {
  color: #fff;
}

.banner__text_main {
  position: relative;
  font-size: 66px;
  font-weight: bold;
  padding-bottom: 50px;
  margin-bottom: 50px;
}

.banner__text_main::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px;
  width: 60px;
  background-color: #fff;
}

.banner__text_sub {
  font-size: 20px;
  font-weight: 500;
}

/* 페이웍스 앱 */
.app {
  display: flex;
  justify-content: center;
  background-image: radial-gradient(circle at 50% 48%, #fff, #eef7ff 20%);
}

.app__wrapper {
  display: flex;
  align-items: center;
  gap: 100px;
  overflow: hidden;
}

.app__image {
  position: relative;
  top: 130px;
  width: 400px;
}

.app__text_main {
  margin-bottom: 20px;
  font-size: 45px;
  font-weight: 500;
}

.app__text_main img {
  position: relative;
  top: 4px;
  height: calc(1em - 4px);
}

.app__text_main b {
  white-space: nowrap;
}

.app__text_sub {
  color: #5a5a5a;
  font-size: 20px;
}

/* 서비스 */
.service {
  display: flex;
  justify-content: center;
  padding: 150px 0;
}

.service__text_main {
  margin-bottom: 90px;
  font-size: 45px;
  font-weight: 500;
  text-align: center;
}

.service__list {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  background: no-repeat center url(../image/symbol_transparent.png), #fff;
}

.service__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #a4c4fe;
  border-radius: 10px;
  text-align: center;
  box-shadow: 3px 3px 8px 5px #7392ce26;
}

.service__item__icon {
  height: 70px;
  width: 70px;
  object-fit: contain;
}

.service__item__text_main {
  font-size: 20px;
  font-weight: bold;
}

.service__item__text_sub {
  color: #999;
  font-size: 15px;
}
