* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  background-color: white;
  padding: 0;
  overflow-x: hidden;
}
.layout {
  width: 100%;
  min-height: 200vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  overflow: visible;
}
.content {
  min-height: calc(100vh - 56px);
}
.banner {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  background-color: #e9fafa;
  overflow: hidden;
}

.banner-button-container {
  position: absolute;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20%;
}
.banner-title-container {
  width: 100%;
  position: absolute;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40%;
  animation: fade-in 3s ease-in-out forwards;
}
.banner-img {
  position: absolute;
  bottom: -4px;
  z-index: 0;
  pointer-events: none;
}
.cloud-left {
  width: 1032px;
}
.cloud-right {
  right: 0;
  width: 940px;
}
.img-ratio {
  width: 100%;
  height: auto; /* 비율 유지하면서 자동 조정 */
}
.plane {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 273px;
  bottom: -130px;
  animation: plane-fly 3s ease-in-out forwards;
  transform-origin: 0% 50%; /* left center */
  z-index: 5;
}
.nav {
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  border-bottom: 1px solid #ddd;
}

.nav-item {
  cursor: pointer;
  width: 33%;
  max-width: 360px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  word-break: keep-all;
}

.nav-item:hover {
  background-color: #e9e9e9;
}
.title {
  text-align: center;
}
.banner-title {
  line-height: 1.4;
  font-size: 4rem;
  font-weight: 600;
  word-break: keep-all;
}
.banner-subtitle {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 40px 0;
  font-weight: 400;
}

.intro-container {
  background-color: #fff;
  width: 100%;
  padding: 96px 12px;
}
.intro-list {
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.intro-item {
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  height: 110px;
  perspective: 1000px;
  cursor: pointer;
}

.intro-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
/* hover 시 상하 뒤집기 */
.intro-item.flip .intro-item-inner {
  transform: rotateX(180deg);
}

.intro-item-front,
.intro-item-back {
  position: absolute;
  padding: 16px 24px;
  padding-right: 32px;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  backface-visibility: hidden; /* 뒤집힌 면 숨김 */
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 24px;
}

.intro-item-front {
  background: #f5f5f5;
  color: #000;
  font-size: 0.875rem;
}
.intro-item-back {
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  transform: rotateX(180deg);
  word-break: break-all;
  line-height: 150%;
}
.intro-item-img {
  width: 80px;
  height: 80px;
}
.intro-item-content {
  flex: 1;
}

.intro-item-label-point {
  font-size: 0.875rem;
  margin-bottom: 8px;
}
.intro-item-label {
  font-size: 1.125rem;
  font-weight: 500;
}
.content-title {
  line-height: 1.4;
  margin: 0 20px;
}
.content-subtitle {
  line-height: 1.4;
  margin: 0;
  margin-bottom: 12px;
  font-weight: 500;
}
.plan-button {
  border-radius: 999px;
  border-color: transparent;
  padding: 16px 24px;
  margin: 12px auto;
  min-width: 240px;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  background-color: transparent;
  transition: filter 0.3s ease;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #484848;
  animation: fade-in 3s ease-in-out forwards;
  z-index: 50;
}
.plan-button:hover {
  color: #000;
}
.button-main {
  font-weight: 700;
  color: #fff !important;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.button-main:hover {
  background-color: #fe2e36;
}
.plan-button:hover > img {
  animation: updown-icon 0.5s ease-in-out infinite alternate;
}

.plan-container {
  width: 100%;
  /* background-color: #141414; */
  background: linear-gradient(to bottom, #74a8dd 0%, #fff 100%);
  padding: 96px 0;
}
.plan-list {
  margin: 0 auto;
  max-width: 1000px;
  padding: 60px 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.plan-item {
  padding: 24px 32px;
  background-color: #fff;
  border-radius: 16px;
  width: 32%;
  min-width: 320px;
  /* max-height: 224px; */
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.plan-info {
  position: relative;
}
.plan-point-label {
  position: absolute;
  right: -16px;
  top: -26px;
}
.plan-info-title {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.plan-item.active {
  background-color: #fff;
  animation: updown 0.8s ease-in-out infinite alternate;
}

.plan-info-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}
.plan-price-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
}
.plan-info-price-label {
  color: #616161;
  font-size: 0.75rem;
}
.plan-info-price-value {
  font-size: 1.5rem;
  font-weight: 700;
}
.plan-info-price-unit {
  font-size: 0.875rem;
  font-weight: 500;
}
.secondary {
  color: #fe2e36;
}
.text-blue {
  color: #1877f2;
}
.plan-content {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-content-item {
  display: flex;
  gap: 8px;
  align-items: center;
}
.plan-content-item-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.faq-container {
  width: 100%;
  /* background-color: #f6f6f6; */
  padding: 96px 0;
  min-height: calc(100vh - 200px);
}

.faq-list {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  display: flex;
  flex-direction: column;
  padding: 24px;
  padding-right: 16px;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  cursor: pointer;
  /* max-height: 220px; */
  min-height: 72px;
  perspective: 800px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.faq-item.open {
  background-color: #fff;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.15);
}

.faq-item-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.faq-item-content {
  border-radius: 16px;
  background-color: #f3f6f8;
  color: #616161;
  font-size: 0.875rem;
  max-height: 240px;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  line-height: 1.5;
}
.faq-item.open .faq-item-content {
  height: max-content;
  padding: 24px 28px;
  opacity: 100;
  margin-top: 16px;
}
.faq-qmark {
  font-size: 0.875rem;
  font-weight: 400;
}
.faq-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
}
.faq-item.open .faq-title {
  font-weight: 600;
}
.faq-toggleBtn {
  width: 24px;
  height: 24px;
  display: inline-block;
  transition: transform 0.5s ease;
  transform-origin: center;
  backface-visibility: visible;
  transform: rotateX(0deg);
}
.faq-item.open .faq-toggleBtn {
  transform: rotateX(180deg);
}

.help-box {
  margin: 0 auto;
  margin-top: 48px;
  width: 516px;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding: 16px 48px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.1);
}

.help-label {
  padding: 0 4px;
  color: #000;
  font-size: 1rem;
  width: 55%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.help-label:first-of-type {
  border-right: 1px solid #ddd;
  width: 45%;
}
.help-label img {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}
.help-label-phone {
  color: #616161;
  font-weight: 500;
}

.line-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  position: relative;
  z-index: 10;
}
.line-button {
  background-color: #06C755;
  color: #fff !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 16px 40px;
  font-size: 1.125rem;
}
.line-button:hover {
  background-color: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.line-button svg {
  margin-right: 8px;
  fill: #fff;
}

.table-wrapper {
  margin: 0 auto;
  overflow-x: auto;
  width: 1000px;
  padding: 0 8px;
}
.plan-table {
  width: fit-content;
  text-align: center;
  border-collapse: separate; /* 중요: 반드시 separate를 사용해야 함 */
  border-spacing: 0; /* 셀 간의 간격을 없앱니다. */
  border: 1px solid #ddd;
  border-radius: 8px;
}

.plan-table tr:first-child td:first-child {
  border-top-left-radius: 8px;
}

.plan-table tr:first-child td:last-child {
  border-top-right-radius: 8px;
}

.plan-table tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.plan-table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}
td {
  padding: 0;
  height: 48px !important;
}
.first-row td {
  height: 56px !important;
}
tr:nth-child(odd) td {
  background-color: #f6f8fa;
}
tr:nth-child(even) td {
  background-color: #fff;
}
th,
td {
  color: #000;
  font-weight: 500;
}

.th {
  background-color: rgba(256, 256, 256, 0.5) !important;
  font-size: 0.75rem;
  width: 120px;
  min-width: 100px;
}
.td {
  min-width: 140px;
}
.td-lg {
  font-size: 1.125rem;
}

.td-md {
  font-size: 1rem;
}
.td-sm {
  font-size: 0.875rem;
}
.td-xs {
  font-size: 0.75rem;
}
.td-desc {
  font-weight: 400;
  font-size: 0.75rem;
  color: #000;
}
.td {
  width: 288px;
}

.text-white {
  color: #fff;
}
.text-black {
  color: #000;
}

.footer-title {
  line-height: 1.4;
  font-size: 3rem;
  font-weight: 600;
  word-break: break-all;
  margin: 0 40px;
}
.footer-container {
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(178, 207, 236, 0) 0%,
    rgba(178, 207, 236, 0.5) 100%
  );
  padding-top: 0px;
  padding-bottom: 240px;
}
/* 화면이 작아지면 gap 줄이기 */
@media (max-width: 1400px) {
  .cloud-right {
    width: 855px;
  }
  .cloud-left {
    width: 774;
  }
}

@media (max-width: 1000px) {
  .banner-title {
    font-size: 2.5rem;
  }
  .banner-subtitle {
    font-size: 1rem;
  }
  .cloud-right {
    width: 570px;
  }
  .cloud-left {
    width: 516px;
  }
  .table-wrapper {
    width: 100%;
  }
}

/*모바일 */
@media (max-width: 600px) {
  .plan-item.active {
    animation: none;
  }
  .help-label {
    padding: 0 4px;
    font-size: 0.875rem;
    font-weight: 600;
  }
  .footer-container {
    padding-top: 40px;
    padding-bottom: 120px;
  }
  .faq-container {
    padding: 64px 8px;
  }
  .faq-list {
    padding-top: 40px;
  }
  .plan-list {
    padding: 40px 0;
  }
  .plan-container {
    padding: 64px 8px;
  }
  .intro-list {
    padding-top: 40px;
  }
  .content-title {
    font-size: 1.25rem;
  }
  .intro-item-front,
  .intro-item-back {
    padding: 16px 16px;
    padding-right: 20px;
    border-radius: 24px;
    gap: 16px;
  }
  .intro-item-label {
    font-size: 1rem;
    font-weight: 500;
  }
  .intro-item-img {
    width: 68px;
    height: 68px;
  }
  .intro-container {
    padding: 64px 8px;
  }
  .banner {
    min-height: 100vh;
  }
  .nav {
    display: none;
  }
  .banner-title {
    font-size: 1.75rem;
  }
  .footer-title {
    font-size: 1.5rem;
  }
  .banner-subtitle {
    font-size: 0.875rem;
    margin: 24px 0;
  }
  .banner-title-container {
    bottom: 44%;
  }
  .cloud-right {
    display: none !important;
    opacity: 0;
  }
  .cloud-left {
    width: 516px;
  }
  .plan-list {
    gap: 20px;
  }
  .help-box {
    width: 92%;
    padding: 8px 12px;
  }
  .plane {
    bottom: -100px;
    width: calc(124px * 0.75);
    height: calc(273px * 0.75);
    animation: plane-fly-mobile 3s ease-in-out forwards;
  }
}
@keyframes updown {
  0% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(-12px);
  }
}

@keyframes updown-icon {
  0% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(3px);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes plane-fly {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  85% {
  }
  100% {
    transform: translateX(-35%) translateY(-72vh) scale(0.7);
  }
}
@keyframes plane-fly-mobile {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  85% {
  }
  100% {
    transform: translateX(-35%) translateY(-72vh) scale(0.7);
  }
}
