/* --- Responsive Design --- */

/* 테블릿 (중간 사이즈: 모두 2열로 통일 예시) */
@media (max-width: 1024px) {

    .type-b,
    .type-c {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 모바일 */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

@media (max-width: 768px) {

    html {
        font-size: 15px;
    }

    /* Typography Scale - Mobile */
    h1 {
        font-size: var(--font-size-4xl);
        /* 36px */
    }

    h2 {
        font-size: var(--font-size-3xl);
        /* 30px */
    }

    h3 {
        font-size: var(--font-size-2xl);
        /* 24px */
    }

    h4 {
        font-size: var(--font-size-xl);
        /* 20px */
    }

    h5 {
        font-size: var(--font-size-lg);
        /* 18px */
    }

    h6 {
        font-size: var(--font-size-base);
        /* 16px */
    }

    /* Layout */
    .container {
        padding: 0 var(--space-4);
        /* 16px */
    }

    .section {
        padding: var(--space-12) 0;
    }

    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-slow);
        padding-top: var(--space-16);
    }

    .nav.active {
        right: 0;
    }

    body.sub-page .menu-toggle span {
        background-color: var(--text-main);
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--space-5);
    }

    .nav a {
        font-size: var(--font-size-xl);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* Section Header */
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .card-content {
        padding: var(--space-6);
    }

    /* Slide */
    .slide-content h1 {
        font-size: var(--font-size-4xl);
    }

    /* Contact */
    .contact-card {
        flex-direction: column;
    }

    .contact-card .image {
        width: 100%;
        height: 200px;
    }

    .contact-info {
        padding: var(--space-6);
    }

    .contact-details {
        flex-direction: column;
        gap: var(--space-5);
    }

    /* Main-Partners */
    .partners .logo-list {
        gap: 0;
    }

    .partners .logo-list .logo-box {
        flex: 0 0 50%;
    }

    .footer-content {
        flex-direction: column;
    }

    /* Subnav */
    .sub-nav ul {
        gap: var(--space-8);
    }

    /* Sub-page */
    .title-content {
        padding: var(--space-16) 0;
    }

    .sub-content .sub-title {
        font-size: var(--font-size-3xl);
        line-height: var(--line-height-relaxed);
    }

    .intro-content .sub-container {
        height: auto;
        min-height: 300px;
        padding: var(--space-6);
    }

    .intro-content .intro-text {
        max-width: 100%;
    }

    .process-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
        padding: 30px 20px;
        position: relative;
    }

    .process-list::before {
        top: 70px;
        bottom: 70px;
        left: 40px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .process-item {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        z-index: 1;
    }

    .process__stepnode {
        margin-bottom: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    .process__icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .process__title {
        text-align: left;
        font-size: 15px;
    }

        .example-list {
        flex-wrap: wrap;
    }

    .example-list>div {
        flex: 0 0 calc(50% - 15px);
    }

    .scroll-hint { display: block; }

    .page-nav{
        flex-direction: column;
        gap:var(--space-3);
    }




.mobile-dropdown-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: var(--space-3) var(--space-4);
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  cursor:pointer;
  color: var(--text);
}

.mobile-current { font-size:var(--font-size-base);font-weight:var(--font-weight-semibold); letter-spacing:-0.2px; }

.dropdown-arrow{
  font-size:var(--font-size-lg);
  color:var(--navy-dark);
  transition: transform .2s ease, color .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.subnav-content.is-open .dropdown-arrow{ transform: rotate(180deg); }

 .subnav-list{
    flex-direction: column;
    margin-top:10px;
    border:1px solid #f1f5f9;
    border-radius: 14px;
    background-color:var(--white);
    box-shadow: var(--shadow);
    overflow:hidden;

    /* 기본은 닫힘 */
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: max-height .22s ease, opacity .18s ease, transform .18s ease;
  }

  /* 열림 상태 */
  .subnav-content.is-open .subnav-list{
    max-height: 400px;     /* 항목 수에 따라 넉넉히 */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    gap: var(--space-3);
  }

  .subnav-item a{
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  .subnav-item:last-child a{ border-bottom:0; }

  .subnav-item a:hover{
    background: rgba(29,53,87,.04);
  }

  .subnav-item.active a{
    color: var(--navy);

  }

  .check-list{
    flex-direction: column;
  }

  .input input
 {
    width: 150px;
}
}