.scm-section {
    width: 100%;
    margin: 0 auto;
    color: inherit;
}

.scm-section .container,
.scm-site-footer .container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.scm-section + .scm-section {
    margin-top: 40px;
}

.scm-section-head {
    margin-bottom: 28px;
}

.scm-section-head h2 {
    margin: 0 0 10px;
}

.scm-section-head p {
    margin: 0;
}

.scm-company-body {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: center;
}

.scm-company-image {
    margin: 0;
}

.scm-company-image img,
.scm-gallery-card img,
.scm-gallery-hero img,
.scm-gallery-detail-grid img,
.scm-certificate-card img {
    display: block;
    width: 100%;
    height: auto;
}

.scm-signature {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-top: 24px;
}

.scm-cta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.scm-button,
.scm-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #1d4ed8;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.scm-button-secondary {
    background: #fff;
    color: #1d4ed8;
}

.scm-certificate-grid,
.scm-gallery-grid,
.scm-gallery-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.scm-certificate-card,
.scm-gallery-card {
    border: 1px solid #e5e7eb;
    background: #fff;
}

.scm-certificate-card figure,
.scm-gallery-card figure,
.scm-gallery-detail-grid figure,
.scm-gallery-hero {
    margin: 0;
}

.scm-certificate-text,
.scm-gallery-card-text {
    padding: 16px;
}

.scm-gallery-card a {
    color: inherit;
    text-decoration: none;
}

.scm-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
}

.scm-info-list div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.scm-info-list dt {
    font-weight: 700;
}

.scm-info-list dd {
    margin: 0;
}

.scm-link-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.scm-map {
    margin-top: 24px;
    aspect-ratio: 16 / 9;
}

.scm-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.scm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.scm-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scm-form-field-full {
    grid-column: 1 / -1;
}

.scm-form-field input,
.scm-form-field select,
.scm-form-field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    box-sizing: border-box;
}

.scm-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.scm-required {
    color: #dc2626;
}

.scm-privacy {
    margin-top: 20px;
}

.scm-privacy-box {
    max-height: 180px;
    overflow: auto;
    padding: 16px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.scm-agree {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.scm-submit {
    margin-top: 20px;
}

.scm-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.scm-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
}

.scm-popup {
    position: relative;
    width: min(520px, 100%);
    max-width: calc(100vw - 40px);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.scm-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.scm-popup__image {
    margin: 0;
}

.scm-popup__image img {
    display: block;
    width: 100%;
    height: auto;
}

.scm-popup__body {
    padding: 24px;
    min-width: 0;
}

.scm-popup__body h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.scm-popup__content {
    white-space: pre-line;
    color: #374151;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.scm-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 42px;
    margin-top: 18px;
    padding: 0 18px;
    border-radius: 6px;
    background: #166534;
    color: #fff;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

.scm-popup__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid #e5e7eb;
}

.scm-popup__actions button {
    min-height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    cursor: pointer;
}

@media (max-width: 480px) {
    .scm-popup-overlay {
        padding: 16px;
    }

    .scm-popup {
        width: 100%;
        max-width: calc(100vw - 32px);
    }

    .scm-popup__body {
        padding: 22px;
    }
}

.scm-gallery .gallery-board__head,
.scm-gallery .section-head {
    margin-bottom: 28px;
}

.scm-gallery .gallery-board__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.scm-gallery .gallery-board__summary a {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid #d1d5db;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.scm-gallery .gallery-board__summary a.is-active {
    border-color: #1d4ed8;
    background: #eff6ff;
    color: #1d4ed8;
}

.scm-gallery .gallery-board__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.scm-gallery .gallery-board__card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    color: inherit;
    text-decoration: none;
    background: #fff;
    overflow: hidden;
}

.scm-gallery .gallery-board__card figure {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
}

.scm-gallery .gallery-board__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-gallery-card__placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 1.46 / 1;
    place-items: center;
    color: rgba(18, 22, 29, 0.48);
    font-size: 16px;
    font-weight: 700;
    background: #eef3f8;
}

.scm-gallery .gallery-board__image-placeholder,
.gallery-board__image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 180px;
    place-items: center;
    color: #ffffff;
    background: #2f3742;
    font-weight: 700;
}

.scm-gallery .gallery-board__badge,
.scm-gallery-view .gallery-detail__category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.scm-gallery .gallery-board__badge {
    position: absolute;
    left: 12px;
    top: 12px;
}

.scm-gallery .gallery-board__content {
    padding: 16px;
}

.scm-gallery .gallery-board__meta-line,
.scm-gallery-view .gallery-detail__meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
}

.scm-gallery .gallery-board__content h3 {
    margin: 10px 0 0;
    font-size: 20px;
}

.scm-gallery .gallery-board__card p,
.scm-gallery .gallery-board__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 14px 0 0;
    color: #7b858c;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.74;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.scm-gallery .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.scm-gallery .pagination__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    border: 1px solid #d1d5db;
    text-decoration: none;
}

.scm-gallery .pagination__num.is-active {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.scm-gallery .gallery-board__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.scm-gallery-view .gallery-detail__toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.scm-gallery-view .gallery-detail__toolbar a,
.scm-gallery .gallery-board__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #1d4ed8;
    color: #1d4ed8;
    text-decoration: none;
}

.scm-gallery .gallery-board__actions .btn--primary,
.scm-gallery-view .gallery-detail__contact {
    background: #1d4ed8;
    color: #fff;
}

.scm-gallery-view .gallery-detail__title {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
}

.scm-gallery-view .gallery-detail__lead {
    color: #475569;
    line-height: 1.7;
}

.scm-gallery-view .gallery-detail__media {
    margin: 30px 0;
}

.scm-gallery-view .gallery-detail__media img {
    width: 100%;
    height: auto;
    display: block;
}

.scm-gallery-view .gallery-detail__media figcaption,
.scm-gallery-view .gallery-detail__photo-grid figcaption {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.scm-gallery-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.scm-gallery-facts div {
    border: 1px solid #e5e7eb;
    padding: 16px;
    background: #fff;
}

.scm-gallery-facts h3 {
    margin-top: 0;
}

.scm-gallery-facts ul {
    margin: 0;
    padding-left: 18px;
}

.scm-gallery-view .gallery-detail__photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.scm-gallery-view .gallery-detail__photo-grid figure {
    margin: 0;
}

.scm-gallery-view .gallery-detail__photo-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.scm-message {
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.scm-message-success {
    background: #edf7ed;
    border-color: #b7dfb9;
    color: #0a6b2b;
}

.scm-message-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.scm-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

@media (max-width: 768px) {
    .scm-company-body,
    .scm-form-grid,
    .scm-info-list {
        grid-template-columns: 1fr;
    }

    .scm-certificate-grid,
    .scm-gallery-grid,
    .scm-gallery-detail-grid,
    .scm-gallery .gallery-board__grid,
    .scm-gallery-facts,
    .scm-gallery-view .gallery-detail__photo-grid {
        grid-template-columns: 1fr;
    }

    .scm-cta,
    .scm-link-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .scm-info-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* 6. 작업 상세 듀얼 테이블 반응형 고도화 */
.scm-report-tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    width: 100%;
    margin: 0 auto;
    font-family: sans-serif;
    text-align: left;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .scm-report-tables {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
