/* =====================================================
   월급연구소 - 전체 디자인
===================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 20px 70px;

  font-family:
    Arial,
    "Noto Sans KR",
    sans-serif;

  background: #f4f6f9;
  color: #171717;
}


/* =====================================================
   상단 메뉴
===================================================== */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 999;

  margin: 0 -20px 45px;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid #e8ebef;
}

.nav-inner {
  width: 100%;
  max-width: 1000px;

  margin: 0 auto;
  padding: 15px 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
}

.site-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;

  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 5px;

  overflow-x: auto;

  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex-shrink: 0;

  padding: 9px 13px;

  border-radius: 10px;

  color: #555;

  text-decoration: none;

  font-size: 14px;
  font-weight: 700;

  transition: 0.2s;
}

.nav-links a:hover {
  background: #f1f3f5;
  color: #111;
}


/* =====================================================
   계산기 공통 카드
===================================================== */

.calculator,
.retirement-calculator {
  width: 100%;
  max-width: 560px;

  margin: 0 auto;

  padding: 42px 40px;

  background: #ffffff;

  border: 1px solid #eceef2;
  border-radius: 24px;

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.055);
}


/* =====================================================
   제목
===================================================== */

h1,
.retirement-calculator h2 {
  margin: 0 0 12px;

  text-align: center;

  color: #111;

  font-weight: 900;

  letter-spacing: -1px;
}

h1 {
  font-size: 30px;
}

.retirement-calculator h2 {
  font-size: 27px;
}

.description {
  max-width: 420px;

  margin: 0 auto 34px;

  text-align: center;

  color: #777;

  font-size: 14px;
  line-height: 1.7;
}


/* =====================================================
   입력창
===================================================== */

label {
  display: block;

  margin: 22px 0 9px;

  color: #222;

  font-size: 14px;
  font-weight: 800;
}

input,
select {
  display: block;

  width: 100%;
  height: 55px;

  padding: 0 16px;

  border: 1px solid #dfe3e8;
  border-radius: 13px;

  background: #ffffff;

  color: #171717;

  font-family: inherit;
  font-size: 16px;

  outline: none;

  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

input:hover,
select:hover {
  border-color: #c9ced6;
}

input:focus,
select:focus {
  border-color: #222;

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.055);
}

input::placeholder {
  color: #a9adb3;
}

.input-help {
  display: block;

  margin-top: 7px;

  color: #888;

  font-size: 12px;
  line-height: 1.55;
}


/* =====================================================
   버튼
===================================================== */

button {
  width: 100%;
  height: 58px;

  margin-top: 32px;

  border: none;
  border-radius: 14px;

  background: #111;

  color: #ffffff;

  font-family: inherit;
  font-size: 17px;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.10);

  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}

button:hover {
  transform: translateY(-1px);

  background: #292929;

  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.13);
}

button:active {
  transform: translateY(0);
}


/* =====================================================
   기본 결과창
===================================================== */

#result,
#retirementResult,
#weeklyResult,
#extraPayResult {
  margin-top: 28px;

  padding: 26px 20px;

  border-radius: 17px;

  background: #f6f7f9;

  color: #333;

  text-align: center;

  font-size: 14px;
  line-height: 1.75;
}


/* =====================================================
   결과 제목
===================================================== */

.result-title {
  margin-bottom: 19px;

  color: #111;

  font-size: 18px;
  font-weight: 900;
}


/* =====================================================
   메인 결과 카드
===================================================== */

.main-result-card {
  margin-bottom: 15px;

  padding: 27px 20px;

  border-radius: 17px;

  background: #111;

  color: #ffffff;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.main-result-card span {
  display: block;

  margin-bottom: 9px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 13px;
}

.main-result-card strong {
  display: block;

  font-size: 30px;
  font-weight: 900;

  letter-spacing: -1px;
}


/* =====================================================
   작은 결과 카드
===================================================== */

.result-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 11px;
}

.result-card {
  padding: 20px 12px;

  border: 1px solid #e5e8ec;
  border-radius: 14px;

  background: #ffffff;
}

.result-card span {
  display: block;

  margin-bottom: 7px;

  color: #777;

  font-size: 12px;
}

.result-card strong {
  display: block;

  color: #111;

  font-size: 17px;
  font-weight: 900;
}


/* =====================================================
   급여 요약
===================================================== */

.salary-summary,
.quick-analysis,
.deduction-detail {
  margin-top: 16px;

  padding: 19px;

  border: 1px solid #e5e8ec;
  border-radius: 15px;

  background: #ffffff;

  text-align: left;
}

.salary-summary p,
.quick-analysis p,
.deduction-detail p {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin: 0;
  padding: 11px 0;

  border-bottom: 1px solid #f0f1f3;

  color: #555;

  font-size: 13px;
  line-height: 1.5;
}

.salary-summary p:last-child,
.quick-analysis p:last-child,
.deduction-detail p:last-child {
  border-bottom: none;
}

.salary-summary strong,
.quick-analysis strong,
.deduction-detail strong {
  color: #111;

  font-weight: 900;

  text-align: right;
}


/* =====================================================
   결과 내부 소제목
===================================================== */

.quick-title {
  margin-bottom: 10px;

  color: #111;

  font-size: 15px;
  font-weight: 900;
}


/* =====================================================
   안내문
===================================================== */

.result-notice {
  margin-top: 18px;

  padding: 15px;

  border-radius: 12px;

  background: #f0f2f5;

  color: #777;

  text-align: left;

  font-size: 11px;
  line-height: 1.7;
}


/* =====================================================
   계산기 사이 구분선
===================================================== */

.section-divider {
  width: 100%;
  max-width: 560px;

  margin: 42px auto;

  border: none;
  border-top: 1px solid #e1e4e8;
}


/* =====================================================
   푸터
===================================================== */

.site-footer {
  width: 100%;
  max-width: 560px;

  margin: 0 auto;

  padding: 25px 20px 10px;

  color: #777;

  text-align: center;

  font-size: 12px;
  line-height: 1.7;
}

.site-footer strong {
  display: block;

  margin-bottom: 10px;

  color: #222;

  font-size: 16px;
  font-weight: 900;
}

.site-footer p {
  margin: 7px 0;
}

.footer-copy {
  margin-top: 18px !important;

  color: #aaa;
}


/* =====================================================
   메뉴 클릭 위치 보정
===================================================== */

#salary-section,
#retirement-section,
#weekly-section,
#extra-section {
  scroll-margin-top: 90px;
}


/* =====================================================
   모바일
===================================================== */

@media (max-width: 600px) {

  body {
    padding:
      0 10px 45px;
  }


  .top-nav {
    margin:
      0 -10px 25px;
  }


  .nav-inner {
    padding:
      11px 12px 9px;

    flex-direction: column;

    align-items: stretch;

    gap: 9px;
  }


  .site-logo {
    text-align: center;

    font-size: 18px;
  }


  .nav-links {
    justify-content: flex-start;
  }


  .nav-links a {
    padding:
      7px 10px;

    font-size: 12px;
  }


  .calculator,
  .retirement-calculator {
    padding:
      30px 18px;

    border-radius: 19px;
  }


  h1 {
    font-size: 25px;
  }


  .retirement-calculator h2 {
    font-size: 23px;
  }


  .description {
    margin-bottom: 27px;

    font-size: 13px;
  }


  label {
    margin-top: 19px;

    font-size: 13px;
  }


  input,
  select {
    height: 52px;

    font-size: 15px;
  }


  button {
    height: 55px;

    margin-top: 27px;

    font-size: 16px;
  }


  #result,
  #retirementResult,
  #weeklyResult,
  #extraPayResult {
    padding:
      22px 12px;
  }


  .main-result-card {
    padding:
      24px 15px;
  }


  .main-result-card strong {
    font-size: 27px;
  }


  .salary-summary,
  .quick-analysis,
  .deduction-detail {
    padding:
      15px;
  }


  .salary-summary p,
  .quick-analysis p,
  .deduction-detail p {
    gap: 10px;

    font-size: 12px;
  }


  #salary-section,
  #retirement-section,
  #weekly-section,
  #extra-section {
    scroll-margin-top: 125px;
  }
}


/* =====================================================
   아주 작은 휴대폰
===================================================== */

@media (max-width: 390px) {

  .result-grid {
    grid-template-columns: 1fr;
  }


  .calculator,
  .retirement-calculator {
    padding:
      27px 14px;
  }


  .main-result-card strong {
    font-size: 25px;
  }


  .salary-summary p,
  .quick-analysis p,
  .deduction-detail p {
    align-items: flex-start;
  }
}
/* =========================
   FAQ
========================= */

.faq-section {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 42px 38px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.faq-section h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 27px;
}

.faq-intro {
  margin: 0 0 28px;
  text-align: center;
  color: #777;
  font-size: 14px;
  line-height: 1.7;
}

.faq-section details {
  margin-bottom: 12px;
  border: 1px solid #e7e9ee;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.faq-section summary {
  position: relative;
  padding: 19px 48px 19px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 23px;
  font-weight: 400;
}

.faq-section details[open] summary::after {
  content: "−";
}

.faq-section details[open] summary {
  background: #f7f8fa;
}

.faq-section details p {
  margin: 0;
  padding: 18px;
  border-top: 1px solid #eef0f3;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .faq-section {
    padding: 30px 20px;
    border-radius: 18px;
  }

  .faq-section h2 {
    font-size: 23px;
  }

  .faq-section summary {
    font-size: 14px;
  }
}
/* 하단 메뉴 */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 24px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer-links {
    gap: 8px 14px;
  }

  .footer-links a {
    font-size: 13px;
  }
}

