/* CONTACT: 공통 글꼴과 종이 질감은 common.css에서 적용합니다. */
.contact-simple {
    padding-block: 40px clamp(80px, 10vw, 150px);
}

.contact-label {
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.14em;
}

.contact-title {
    margin-top: clamp(64px, 9vw, 132px);
    font-size: clamp(42px, 8.2vw, 120px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.contact-shift-key {
    display: inline-block;
    width: 2.15em;
    padding: 0;
    margin: -0.25em 0.02em -0.2em 0;
    border: 0;
    background: transparent;
    font: inherit;
    vertical-align: middle;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.contact-shift-key img {
    display: block;
    width: 100%;
    height: auto;
}

.contact-shift-key:active { transform: translateY(0.07em); }
.contact-shift-key:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.contact-director {
    max-width: 640px;
    margin-top: 28px;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.9;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.contact-director p + p { margin-top: 18px; }
.contact-director__greeting { font-weight: 600; }

@media (max-width: 760px) {
    .contact-title {
        font-size: clamp(36px, 8.2vw, 62px);
    }
}

.contact-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
    margin-top: 64px;
    padding-top: 36px;
    border-top: 1px solid var(--color-line);
}

.contact-heading {
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.04em;
}

.contact-copy {
    max-width: 440px;
    margin-top: 18px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
}

.contact-action__links {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.contact-page + .site-footer {
    margin-top: 0;
}

.contact-social {
    display: grid;
    gap: 12px;
    margin-top: 0;
}

.contact-social__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    min-height: 60px;
    padding: 16px 20px;
    border: 1px solid var(--color-line);
    font-size: 15px;
}

.contact-social small {
    color: var(--color-muted);
    font-size: 12px;
}

.contact-social__link small {
    display: block;
    margin-top: 2px;
}

.contact-social__link:hover {
    border-color: var(--color-text);
}

.contact-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--color-muted);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.contact-footer .text-link {
    font-size: 10px;
}

@media (max-width: 760px) {
    .contact-action {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 48px;
        padding-top: 28px;
    }

}

/* ABOUT과 동일한 TOP 버튼 */
.contact-page .contact-top-link {
    position: fixed;
    top: auto;
    right: clamp(20px, 3vw, 48px);
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 15;

    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;

}

/* 작고 차분한 원형 버튼 */
.contact-page .contact-top-link > .text-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;

    width: 56px;
    height: 56px;
    min-height: 56px;
    margin: 0;
    padding: 0;

    border: 1px solid rgb(37 37 37 / 15%);
    border-radius: 50%;
    background: rgb(255 255 255 / 94%);
    color: #252525;
    box-shadow: 0 3px 14px rgb(0 0 0 / 6%);

    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.08em;

    transition:
        background-color 180ms ease,
        box-shadow 180ms ease;
}

/* 컬러 이모지는 숨기고 단색 화살표로 교체 */
.contact-page .contact-top-link > .text-link > span {
    display: none;
}

.contact-page .contact-top-link > .text-link::before {
    content: "↑";
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
}

@media (hover: hover) {
    .contact-page .contact-top-link > .text-link:hover {
        background: #fff;
        box-shadow: 0 5px 18px rgb(0 0 0 / 10%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-page .contact-top-link > .text-link {
        transition: none;
    }

    .contact-page .contact-top-link {
        transform: none;
    }
}

/* TOP 버튼을 모서리에서 안쪽으로 이동 */
.contact-page .contact-top-link {
    right: clamp(32px, 5vw, 80px);
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* 크기와 대비를 높여 눈에 잘 띄도록 조정 */
.contact-page .contact-top-link > .text-link {
    width: 64px;
    height: 64px;
    min-height: 64px;

    background: #fff;
    border-color: rgb(37 37 37 / 28%);
    box-shadow: 0 4px 18px rgb(0 0 0 / 12%);
    font-size: 11px;
}

.contact-page .contact-top-link > .text-link::before {
    font-size: 24px;
}

/* 모바일에서는 본문을 과하게 가리지 않도록 간격 조정 */
@media (max-width: 760px) {
    .contact-page .contact-top-link {
        right: 24px;
        bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }
}

/* 이메일 문의 폼 */
.contact-email-inquiry > summary { cursor: pointer; list-style: none; }
.contact-email-inquiry > summary::-webkit-details-marker { display: none; }
.contact-email-inquiry[open] .contact-email-inquiry__icon { transform: rotate(45deg); }
.contact-form {
    display: grid;
    gap: 10px;
    padding: 24px 20px;
    border: 1px solid var(--color-line);
    border-top: 0;
}
.contact-form__intro { margin-bottom: 8px; color: var(--color-muted); font-size: 13px; }
.contact-form label { margin-top: 10px; font-size: 14px; }
.contact-form label span { color: var(--color-muted); font-size: 12px; }
.contact-form input,
.contact-form textarea {
    width: 100%; min-width: 0; padding: 12px;
    border: 1px solid var(--color-line); border-radius: 0;
    background: rgb(255 255 255 / 70%); color: var(--color-text);
    font-size: 16px; line-height: 1.6;
}
.contact-form textarea { resize: vertical; }
.contact-form__submit {
    display: flex; justify-content: space-between; align-items: center;
    min-height: 52px; margin-top: 14px; padding: 12px 18px;
    border: 0; background: var(--color-text); color: #fff;
}
.contact-form__submit:disabled { cursor: wait; opacity: 0.6; }
.contact-form__status { font-size: 13px; line-height: 1.8; }
.contact-form__status:empty { display: none; }

.contact-social {
    gap: 16px;
}

.contact-social__link {
    min-height: 80px;
    padding: 22px 26px;
    border: 2px solid var(--color-text);
    background: var(--color-surface);
    font-size: 17px;
    font-weight: 600;
}

.contact-social__link small {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text);
}

.contact-social__link > span:last-child {
    font-size: 24px;
}

.contact-social__link:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.contact-social__link:hover small {
    color: inherit;
}

.contact-social__link:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
}